zudoku 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/validate.d.ts +27 -13
- package/dist/config/validators/validate.js +3 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +6 -2
- package/dist/lib/components/SlotletProvider.js +3 -5
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +8 -6
- package/dist/lib/plugins/custom-pages/index.js +3 -4
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +8 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/vite/dev-server.d.ts +6 -1
- package/dist/vite/dev-server.js +4 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-CbgJ5SAh.js} +3 -3
- package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-CbgJ5SAh.js.map} +1 -1
- package/lib/{CategoryHeading-ovR-zHRq.js → CategoryHeading-3Qtp2yZ8.js} +2 -2
- package/lib/{CategoryHeading-ovR-zHRq.js.map → CategoryHeading-3Qtp2yZ8.js.map} +1 -1
- package/lib/{DeveloperHint-YeWHKvyr.js → DeveloperHint-BE9DzNhv.js} +2 -2
- package/lib/{DeveloperHint-YeWHKvyr.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
- package/lib/{ErrorPage-CsZAN_za.js → ErrorPage-B0COs372.js} +3 -3
- package/lib/{ErrorPage-CsZAN_za.js.map → ErrorPage-B0COs372.js.map} +1 -1
- package/lib/Input-CHfE_2Qk.js +2229 -0
- package/lib/Input-CHfE_2Qk.js.map +1 -0
- package/lib/{Markdown-DapSf3wG.js → Markdown-CWI6lU11.js} +714 -554
- package/lib/Markdown-CWI6lU11.js.map +1 -0
- package/lib/{MdxPage-BqBWsXZ1.js → MdxPage-C3tlrV4j.js} +6 -6
- package/lib/{MdxPage-BqBWsXZ1.js.map → MdxPage-C3tlrV4j.js.map} +1 -1
- package/lib/{OperationList-CYrmxPa8.js → OperationList-BO-ES1C5.js} +38 -39
- package/lib/OperationList-BO-ES1C5.js.map +1 -0
- package/lib/{Route-Q5mqNQrv.js → Route-Dq6zv0Pi.js} +3 -4
- package/lib/Route-Dq6zv0Pi.js.map +1 -0
- package/lib/SidebarBadge-DmI5hT04.js +503 -0
- package/lib/SidebarBadge-DmI5hT04.js.map +1 -0
- package/lib/{SlotletProvider-BWwfPzgI.js → SlotletProvider-RvaeLR6z.js} +43 -44
- package/lib/{SlotletProvider-BWwfPzgI.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
- package/lib/ZudokuContext-BEmsYQoq.js +1173 -0
- package/lib/ZudokuContext-BEmsYQoq.js.map +1 -0
- package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
- package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
- package/lib/assets/{worker-BP8Uzflt.js → worker-Bf8vjASY.js} +4581 -4300
- package/lib/assets/worker-Bf8vjASY.js.map +1 -0
- package/lib/{index-BG0g4WW0.js → index-BRCiYFaL.js} +747 -737
- package/lib/index-BRCiYFaL.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
- package/lib/index-CkwDvuPt.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-D06ATMgg.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-D06ATMgg.js.map} +1 -1
- package/lib/index-DJqnphbT.js +35 -0
- package/lib/{index-Bn6Lc9tq.js.map → index-DJqnphbT.js.map} +1 -1
- package/lib/{index-BlJ2rj99.js → index-DNfiZTPV.js} +1123 -974
- package/lib/index-DNfiZTPV.js.map +1 -0
- package/lib/{index-Dolisrci.js → index-Do_BBSIs.js} +597 -544
- package/lib/index-Do_BBSIs.js.map +1 -0
- package/lib/{index-BngPzhKn.js → index-Dvh1BL_e.js} +3 -3
- package/lib/{index-BngPzhKn.js.map → index-Dvh1BL_e.js.map} +1 -1
- package/lib/router-Oe6YmY6B.js +3024 -0
- package/lib/router-Oe6YmY6B.js.map +1 -0
- package/lib/state-CsuHT8ZO.js +183 -0
- package/lib/state-CsuHT8ZO.js.map +1 -0
- package/lib/urql-core-KJnLL26g.js +1455 -0
- package/lib/urql-core-KJnLL26g.js.map +1 -0
- package/lib/useExposedProps-Csw8oAlt.js +9 -0
- package/lib/useExposedProps-Csw8oAlt.js.map +1 -0
- package/lib/{utils-ByIc_KIM.js → utils-Chi3p5nE.js} +4 -4
- package/lib/utils-Chi3p5nE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +363 -350
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1694 -1628
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +4599 -4317
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +16 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -8
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +58 -65
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/SlotletProvider.tsx +14 -7
- package/src/lib/components/index.ts +1 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +11 -9
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
- package/src/lib/plugins/openapi/index.tsx +1 -5
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/util/useExposedProps.tsx +10 -0
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { j as Q } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { L as Ms } from "./index-
|
|
2
|
+
import { L as Ms } from "./index-BRCiYFaL.js";
|
|
3
3
|
import { createContext as Ti, useState as Tr, useRef as At, useEffect as hn, useMemo as tr, useContext as yi, useCallback as pn, createElement as Fs } from "react";
|
|
4
4
|
import { InfoIcon as Qr, LightbulbIcon as Bs, AlertTriangleIcon as vs, ShieldAlertIcon as Hs, CheckIcon as Us, CopyIcon as zs } from "lucide-react";
|
|
5
|
-
import { c as Xr, g as Ys } from "./
|
|
6
|
-
import { e as js } from "./index-Bn6Lc9tq.js";
|
|
5
|
+
import { c as Xr, g as Ys, e as js } from "./index-DJqnphbT.js";
|
|
7
6
|
function Ai(e) {
|
|
8
7
|
var t, n, r = "";
|
|
9
8
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -21,26 +20,26 @@ const Kr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Zr =
|
|
|
21
20
|
const { variants: a, defaultVariants: u } = t, i = Object.keys(a).map((c) => {
|
|
22
21
|
const f = n == null ? void 0 : n[c], d = u == null ? void 0 : u[c];
|
|
23
22
|
if (f === null) return null;
|
|
24
|
-
const
|
|
25
|
-
return a[c][
|
|
23
|
+
const b = Kr(f) || Kr(d);
|
|
24
|
+
return a[c][b];
|
|
26
25
|
}), o = n && Object.entries(n).reduce((c, f) => {
|
|
27
|
-
let [d,
|
|
28
|
-
return
|
|
26
|
+
let [d, b] = f;
|
|
27
|
+
return b === void 0 || (c[d] = b), c;
|
|
29
28
|
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, f) => {
|
|
30
|
-
let { class: d, className:
|
|
29
|
+
let { class: d, className: b, ...m } = f;
|
|
31
30
|
return Object.entries(m).every((h) => {
|
|
32
|
-
let [
|
|
31
|
+
let [E, y] = h;
|
|
33
32
|
return Array.isArray(y) ? y.includes({
|
|
34
33
|
...u,
|
|
35
34
|
...o
|
|
36
|
-
}[
|
|
35
|
+
}[E]) : {
|
|
37
36
|
...u,
|
|
38
37
|
...o
|
|
39
|
-
}[
|
|
38
|
+
}[E] === y;
|
|
40
39
|
}) ? [
|
|
41
40
|
...c,
|
|
42
41
|
d,
|
|
43
|
-
|
|
42
|
+
b
|
|
44
43
|
] : c;
|
|
45
44
|
}, []);
|
|
46
45
|
return Zr(e, i, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -181,12 +180,12 @@ const Ar = "-", $s = (e) => {
|
|
|
181
180
|
}
|
|
182
181
|
_ === "[" ? c++ : _ === "]" && c--;
|
|
183
182
|
}
|
|
184
|
-
const
|
|
183
|
+
const b = l.length === 0 ? o : o.substring(f), m = b.startsWith(xi), h = m ? b.substring(1) : b, E = d && d > f ? d - f : void 0;
|
|
185
184
|
return {
|
|
186
185
|
modifiers: l,
|
|
187
186
|
hasImportantModifier: m,
|
|
188
187
|
baseClassName: h,
|
|
189
|
-
maybePostfixModifierPosition:
|
|
188
|
+
maybePostfixModifierPosition: E
|
|
190
189
|
};
|
|
191
190
|
};
|
|
192
191
|
return n ? (o) => n({
|
|
@@ -216,26 +215,26 @@ const Ar = "-", $s = (e) => {
|
|
|
216
215
|
const c = i[l], {
|
|
217
216
|
modifiers: f,
|
|
218
217
|
hasImportantModifier: d,
|
|
219
|
-
baseClassName:
|
|
218
|
+
baseClassName: b,
|
|
220
219
|
maybePostfixModifierPosition: m
|
|
221
220
|
} = n(c);
|
|
222
|
-
let h = !!m,
|
|
223
|
-
if (!
|
|
221
|
+
let h = !!m, E = r(h ? b.substring(0, m) : b);
|
|
222
|
+
if (!E) {
|
|
224
223
|
if (!h) {
|
|
225
224
|
o = c + (o.length > 0 ? " " + o : o);
|
|
226
225
|
continue;
|
|
227
226
|
}
|
|
228
|
-
if (
|
|
227
|
+
if (E = r(b), !E) {
|
|
229
228
|
o = c + (o.length > 0 ? " " + o : o);
|
|
230
229
|
continue;
|
|
231
230
|
}
|
|
232
231
|
h = !1;
|
|
233
232
|
}
|
|
234
|
-
const y = Js(f).join(":"), _ = d ? y + xi : y, x = _ +
|
|
233
|
+
const y = Js(f).join(":"), _ = d ? y + xi : y, x = _ + E;
|
|
235
234
|
if (u.includes(x))
|
|
236
235
|
continue;
|
|
237
236
|
u.push(x);
|
|
238
|
-
const I = a(
|
|
237
|
+
const I = a(E, h);
|
|
239
238
|
for (let M = 0; M < I.length; ++M) {
|
|
240
239
|
const B = I[M];
|
|
241
240
|
u.push(_ + B);
|
|
@@ -278,7 +277,7 @@ function ao(e, ...t) {
|
|
|
278
277
|
const oe = (e) => {
|
|
279
278
|
const t = (n) => n[e] || [];
|
|
280
279
|
return t.isThemeGetter = !0, t;
|
|
281
|
-
}, Ii = /^\[(?:([a-z-]+):)?(.+)\]$/i, io = /^\d+\/\d+$/, uo = /* @__PURE__ */ new Set(["px", "full", "screen"]), so = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, oo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, lo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $e = (e) => Tt(e) || uo.has(e) || io.test(e), Ve = (e) => xt(e, "length", yo), Tt = (e) => !!e && !Number.isNaN(Number(e)), Fn = (e) => xt(e, "number", Tt), wt = (e) => !!e && Number.isInteger(Number(e)), ho = (e) => e.endsWith("%") && Tt(e.slice(0, -1)), V = (e) => Ii.test(e), Qe = (e) => so.test(e), po = /* @__PURE__ */ new Set(["length", "size", "percentage"]), mo = (e) => xt(e, po, Si), go = (e) => xt(e, "position", Si),
|
|
280
|
+
}, Ii = /^\[(?:([a-z-]+):)?(.+)\]$/i, io = /^\d+\/\d+$/, uo = /* @__PURE__ */ new Set(["px", "full", "screen"]), so = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, oo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, lo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $e = (e) => Tt(e) || uo.has(e) || io.test(e), Ve = (e) => xt(e, "length", yo), Tt = (e) => !!e && !Number.isNaN(Number(e)), Fn = (e) => xt(e, "number", Tt), wt = (e) => !!e && Number.isInteger(Number(e)), ho = (e) => e.endsWith("%") && Tt(e.slice(0, -1)), V = (e) => Ii.test(e), Qe = (e) => so.test(e), po = /* @__PURE__ */ new Set(["length", "size", "percentage"]), mo = (e) => xt(e, po, Si), go = (e) => xt(e, "position", Si), bo = /* @__PURE__ */ new Set(["image", "url"]), Eo = (e) => xt(e, bo, _o), To = (e) => xt(e, "", Ao), Dt = () => !0, xt = (e, t, n) => {
|
|
282
281
|
const r = Ii.exec(e);
|
|
283
282
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
284
283
|
}, yo = (e) => (
|
|
@@ -287,7 +286,7 @@ const oe = (e) => {
|
|
|
287
286
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
288
287
|
oo.test(e) && !lo.test(e)
|
|
289
288
|
), Si = () => !1, Ao = (e) => co.test(e), _o = (e) => fo.test(e), Co = () => {
|
|
290
|
-
const e = oe("colors"), t = oe("spacing"), n = oe("blur"), r = oe("brightness"), a = oe("borderColor"), u = oe("borderRadius"), i = oe("borderSpacing"), o = oe("borderWidth"), l = oe("contrast"), c = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"),
|
|
289
|
+
const e = oe("colors"), t = oe("spacing"), n = oe("blur"), r = oe("brightness"), a = oe("borderColor"), u = oe("borderRadius"), i = oe("borderSpacing"), o = oe("borderWidth"), l = oe("contrast"), c = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"), b = oe("gap"), m = oe("gradientColorStops"), h = oe("gradientColorStopPositions"), E = oe("inset"), y = oe("margin"), _ = oe("opacity"), x = oe("padding"), I = oe("saturate"), M = oe("scale"), B = oe("sepia"), R = oe("skew"), U = oe("space"), q = oe("translate"), Y = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", V, t], F = () => [V, t], ee = () => ["", $e, Ve], G = () => ["auto", Tt, V], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], te = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], me = () => ["", "0", V], A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ae = () => [Tt, V];
|
|
291
290
|
return {
|
|
292
291
|
cacheSize: 500,
|
|
293
292
|
separator: ":",
|
|
@@ -464,63 +463,63 @@ const oe = (e) => {
|
|
|
464
463
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
465
464
|
*/
|
|
466
465
|
inset: [{
|
|
467
|
-
inset: [
|
|
466
|
+
inset: [E]
|
|
468
467
|
}],
|
|
469
468
|
/**
|
|
470
469
|
* Right / Left
|
|
471
470
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
472
471
|
*/
|
|
473
472
|
"inset-x": [{
|
|
474
|
-
"inset-x": [
|
|
473
|
+
"inset-x": [E]
|
|
475
474
|
}],
|
|
476
475
|
/**
|
|
477
476
|
* Top / Bottom
|
|
478
477
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
479
478
|
*/
|
|
480
479
|
"inset-y": [{
|
|
481
|
-
"inset-y": [
|
|
480
|
+
"inset-y": [E]
|
|
482
481
|
}],
|
|
483
482
|
/**
|
|
484
483
|
* Start
|
|
485
484
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
486
485
|
*/
|
|
487
486
|
start: [{
|
|
488
|
-
start: [
|
|
487
|
+
start: [E]
|
|
489
488
|
}],
|
|
490
489
|
/**
|
|
491
490
|
* End
|
|
492
491
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
493
492
|
*/
|
|
494
493
|
end: [{
|
|
495
|
-
end: [
|
|
494
|
+
end: [E]
|
|
496
495
|
}],
|
|
497
496
|
/**
|
|
498
497
|
* Top
|
|
499
498
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
500
499
|
*/
|
|
501
500
|
top: [{
|
|
502
|
-
top: [
|
|
501
|
+
top: [E]
|
|
503
502
|
}],
|
|
504
503
|
/**
|
|
505
504
|
* Right
|
|
506
505
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
507
506
|
*/
|
|
508
507
|
right: [{
|
|
509
|
-
right: [
|
|
508
|
+
right: [E]
|
|
510
509
|
}],
|
|
511
510
|
/**
|
|
512
511
|
* Bottom
|
|
513
512
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
514
513
|
*/
|
|
515
514
|
bottom: [{
|
|
516
|
-
bottom: [
|
|
515
|
+
bottom: [E]
|
|
517
516
|
}],
|
|
518
517
|
/**
|
|
519
518
|
* Left
|
|
520
519
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
521
520
|
*/
|
|
522
521
|
left: [{
|
|
523
|
-
left: [
|
|
522
|
+
left: [E]
|
|
524
523
|
}],
|
|
525
524
|
/**
|
|
526
525
|
* Visibility
|
|
@@ -670,21 +669,21 @@ const oe = (e) => {
|
|
|
670
669
|
* @see https://tailwindcss.com/docs/gap
|
|
671
670
|
*/
|
|
672
671
|
gap: [{
|
|
673
|
-
gap: [
|
|
672
|
+
gap: [b]
|
|
674
673
|
}],
|
|
675
674
|
/**
|
|
676
675
|
* Gap X
|
|
677
676
|
* @see https://tailwindcss.com/docs/gap
|
|
678
677
|
*/
|
|
679
678
|
"gap-x": [{
|
|
680
|
-
"gap-x": [
|
|
679
|
+
"gap-x": [b]
|
|
681
680
|
}],
|
|
682
681
|
/**
|
|
683
682
|
* Gap Y
|
|
684
683
|
* @see https://tailwindcss.com/docs/gap
|
|
685
684
|
*/
|
|
686
685
|
"gap-y": [{
|
|
687
|
-
"gap-y": [
|
|
686
|
+
"gap-y": [b]
|
|
688
687
|
}],
|
|
689
688
|
/**
|
|
690
689
|
* Justify Content
|
|
@@ -1244,7 +1243,7 @@ const oe = (e) => {
|
|
|
1244
1243
|
"bg-image": [{
|
|
1245
1244
|
bg: ["none", {
|
|
1246
1245
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1247
|
-
},
|
|
1246
|
+
}, Eo]
|
|
1248
1247
|
}],
|
|
1249
1248
|
/**
|
|
1250
1249
|
* Background Color
|
|
@@ -1537,6 +1536,20 @@ const oe = (e) => {
|
|
|
1537
1536
|
"border-color-y": [{
|
|
1538
1537
|
"border-y": [a]
|
|
1539
1538
|
}],
|
|
1539
|
+
/**
|
|
1540
|
+
* Border Color S
|
|
1541
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1542
|
+
*/
|
|
1543
|
+
"border-color-s": [{
|
|
1544
|
+
"border-s": [a]
|
|
1545
|
+
}],
|
|
1546
|
+
/**
|
|
1547
|
+
* Border Color E
|
|
1548
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
1549
|
+
*/
|
|
1550
|
+
"border-color-e": [{
|
|
1551
|
+
"border-e": [a]
|
|
1552
|
+
}],
|
|
1540
1553
|
/**
|
|
1541
1554
|
* Border Color Top
|
|
1542
1555
|
* @see https://tailwindcss.com/docs/border-color
|
|
@@ -2283,7 +2296,7 @@ const oe = (e) => {
|
|
|
2283
2296
|
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
2284
2297
|
"border-w-x": ["border-w-r", "border-w-l"],
|
|
2285
2298
|
"border-w-y": ["border-w-t", "border-w-b"],
|
|
2286
|
-
"border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
2299
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
2287
2300
|
"border-color-x": ["border-color-r", "border-color-l"],
|
|
2288
2301
|
"border-color-y": ["border-color-t", "border-color-b"],
|
|
2289
2302
|
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
@@ -2302,7 +2315,7 @@ const oe = (e) => {
|
|
|
2302
2315
|
}
|
|
2303
2316
|
};
|
|
2304
2317
|
}, xo = /* @__PURE__ */ ao(Co);
|
|
2305
|
-
function
|
|
2318
|
+
function bt(...e) {
|
|
2306
2319
|
return xo(yr(e));
|
|
2307
2320
|
}
|
|
2308
2321
|
const ko = {
|
|
@@ -2351,7 +2364,7 @@ const ko = {
|
|
|
2351
2364
|
return /* @__PURE__ */ Q.jsxs(
|
|
2352
2365
|
"div",
|
|
2353
2366
|
{
|
|
2354
|
-
className:
|
|
2367
|
+
className: bt(
|
|
2355
2368
|
"not-prose grid grid-cols-[min-content_1fr] grid-rows-[fit-content_1fr] gap-x-4 gap-y-2 text-md rounded-md border p-4",
|
|
2356
2369
|
"[&_a]:underline [&_a]:decoration-current [&_a]:decoration-from-font [&_a]:underline-offset-4 hover:[&_a]:decoration-1",
|
|
2357
2370
|
"[&_code]:!bg-gray-50 [&_code]:dark:!bg-gray-800 [&_code]:!border-none my-2",
|
|
@@ -2364,13 +2377,13 @@ const ko = {
|
|
|
2364
2377
|
/* @__PURE__ */ Q.jsx(
|
|
2365
2378
|
c,
|
|
2366
2379
|
{
|
|
2367
|
-
className:
|
|
2380
|
+
className: bt(!n && "translate-y-px", i),
|
|
2368
2381
|
size: 20,
|
|
2369
2382
|
"aria-hidden": "true"
|
|
2370
2383
|
}
|
|
2371
2384
|
),
|
|
2372
|
-
n && /* @__PURE__ */ Q.jsx("h3", { className:
|
|
2373
|
-
/* @__PURE__ */ Q.jsx("div", { className:
|
|
2385
|
+
n && /* @__PURE__ */ Q.jsx("h3", { className: bt("font-medium", o), children: n }),
|
|
2386
|
+
/* @__PURE__ */ Q.jsx("div", { className: bt("col-start-2", !n && "row-start-1", l), children: t })
|
|
2374
2387
|
]
|
|
2375
2388
|
}
|
|
2376
2389
|
);
|
|
@@ -2392,7 +2405,7 @@ const ko = {
|
|
|
2392
2405
|
}, [t, n]), { ref: pn((a) => {
|
|
2393
2406
|
a && (e.current = a);
|
|
2394
2407
|
}, []) };
|
|
2395
|
-
},
|
|
2408
|
+
}, Db = ({
|
|
2396
2409
|
children: e
|
|
2397
2410
|
}) => {
|
|
2398
2411
|
const [t, n] = Tr(""), r = At(null), a = At(/* @__PURE__ */ new Set());
|
|
@@ -3685,15 +3698,15 @@ var Hi = {}, sa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Go = /\n/g, qo = /^\s*/, $o
|
|
|
3685
3698
|
t = t || {};
|
|
3686
3699
|
var n = 1, r = 1;
|
|
3687
3700
|
function a(h) {
|
|
3688
|
-
var
|
|
3689
|
-
|
|
3701
|
+
var E = h.match(Go);
|
|
3702
|
+
E && (n += E.length);
|
|
3690
3703
|
var y = h.lastIndexOf(Ko);
|
|
3691
3704
|
r = ~y ? h.length - y : r + h.length;
|
|
3692
3705
|
}
|
|
3693
3706
|
function u() {
|
|
3694
3707
|
var h = { line: n, column: r };
|
|
3695
|
-
return function(
|
|
3696
|
-
return
|
|
3708
|
+
return function(E) {
|
|
3709
|
+
return E.position = new i(h), c(), E;
|
|
3697
3710
|
};
|
|
3698
3711
|
}
|
|
3699
3712
|
function i(h) {
|
|
@@ -3701,48 +3714,48 @@ var Hi = {}, sa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Go = /\n/g, qo = /^\s*/, $o
|
|
|
3701
3714
|
}
|
|
3702
3715
|
i.prototype.content = e;
|
|
3703
3716
|
function o(h) {
|
|
3704
|
-
var
|
|
3717
|
+
var E = new Error(
|
|
3705
3718
|
t.source + ":" + n + ":" + r + ": " + h
|
|
3706
3719
|
);
|
|
3707
|
-
if (
|
|
3720
|
+
if (E.reason = h, E.filename = t.source, E.line = n, E.column = r, E.source = e, !t.silent) throw E;
|
|
3708
3721
|
}
|
|
3709
3722
|
function l(h) {
|
|
3710
|
-
var
|
|
3711
|
-
if (
|
|
3712
|
-
var y =
|
|
3713
|
-
return a(y), e = e.slice(y.length),
|
|
3723
|
+
var E = h.exec(e);
|
|
3724
|
+
if (E) {
|
|
3725
|
+
var y = E[0];
|
|
3726
|
+
return a(y), e = e.slice(y.length), E;
|
|
3714
3727
|
}
|
|
3715
3728
|
}
|
|
3716
3729
|
function c() {
|
|
3717
3730
|
l(qo);
|
|
3718
3731
|
}
|
|
3719
3732
|
function f(h) {
|
|
3720
|
-
var
|
|
3721
|
-
for (h = h || [];
|
|
3722
|
-
|
|
3733
|
+
var E;
|
|
3734
|
+
for (h = h || []; E = d(); )
|
|
3735
|
+
E !== !1 && h.push(E);
|
|
3723
3736
|
return h;
|
|
3724
3737
|
}
|
|
3725
3738
|
function d() {
|
|
3726
3739
|
var h = u();
|
|
3727
3740
|
if (!(oa != e.charAt(0) || la != e.charAt(1))) {
|
|
3728
|
-
for (var
|
|
3729
|
-
++
|
|
3730
|
-
if (
|
|
3741
|
+
for (var E = 2; ut != e.charAt(E) && (la != e.charAt(E) || oa != e.charAt(E + 1)); )
|
|
3742
|
+
++E;
|
|
3743
|
+
if (E += 2, ut === e.charAt(E - 1))
|
|
3731
3744
|
return o("End of comment missing");
|
|
3732
|
-
var y = e.slice(2,
|
|
3733
|
-
return r += 2, a(y), e = e.slice(
|
|
3745
|
+
var y = e.slice(2, E - 2);
|
|
3746
|
+
return r += 2, a(y), e = e.slice(E), r += 2, h({
|
|
3734
3747
|
type: Zo,
|
|
3735
3748
|
comment: y
|
|
3736
3749
|
});
|
|
3737
3750
|
}
|
|
3738
3751
|
}
|
|
3739
|
-
function
|
|
3740
|
-
var h = u(),
|
|
3741
|
-
if (
|
|
3752
|
+
function b() {
|
|
3753
|
+
var h = u(), E = l($o);
|
|
3754
|
+
if (E) {
|
|
3742
3755
|
if (d(), !l(Wo)) return o("property missing ':'");
|
|
3743
3756
|
var y = l(Vo), _ = h({
|
|
3744
3757
|
type: Jo,
|
|
3745
|
-
property: ca(
|
|
3758
|
+
property: ca(E[0].replace(sa, ut)),
|
|
3746
3759
|
value: y ? ca(y[0].replace(sa, ut)) : ut
|
|
3747
3760
|
});
|
|
3748
3761
|
return l(Qo), _;
|
|
@@ -3751,8 +3764,8 @@ var Hi = {}, sa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Go = /\n/g, qo = /^\s*/, $o
|
|
|
3751
3764
|
function m() {
|
|
3752
3765
|
var h = [];
|
|
3753
3766
|
f(h);
|
|
3754
|
-
for (var
|
|
3755
|
-
|
|
3767
|
+
for (var E; E = b(); )
|
|
3768
|
+
E !== !1 && (h.push(E), f(h));
|
|
3756
3769
|
return h;
|
|
3757
3770
|
}
|
|
3758
3771
|
return c(), m();
|
|
@@ -3808,7 +3821,7 @@ function fa(e) {
|
|
|
3808
3821
|
function ha(e) {
|
|
3809
3822
|
return e && typeof e == "number" ? e : 1;
|
|
3810
3823
|
}
|
|
3811
|
-
class
|
|
3824
|
+
class be extends Error {
|
|
3812
3825
|
/**
|
|
3813
3826
|
* Create a message for `reason`.
|
|
3814
3827
|
*
|
|
@@ -3882,19 +3895,19 @@ class Ee extends Error {
|
|
|
3882
3895
|
this.ancestors = u.ancestors || void 0, this.cause = u.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = o ? o.line : void 0, this.name = vt(u.place) || "1:1", this.place = u.place || void 0, this.reason = this.message, this.ruleId = u.ruleId || void 0, this.source = u.source || void 0, this.stack = i && u.cause && typeof u.cause.stack == "string" ? u.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
3883
3896
|
}
|
|
3884
3897
|
}
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
+
be.prototype.file = "";
|
|
3899
|
+
be.prototype.name = "";
|
|
3900
|
+
be.prototype.reason = "";
|
|
3901
|
+
be.prototype.message = "";
|
|
3902
|
+
be.prototype.stack = "";
|
|
3903
|
+
be.prototype.column = void 0;
|
|
3904
|
+
be.prototype.line = void 0;
|
|
3905
|
+
be.prototype.ancestors = void 0;
|
|
3906
|
+
be.prototype.cause = void 0;
|
|
3907
|
+
be.prototype.fatal = void 0;
|
|
3908
|
+
be.prototype.place = void 0;
|
|
3909
|
+
be.prototype.ruleId = void 0;
|
|
3910
|
+
be.prototype.source = void 0;
|
|
3898
3911
|
const Cr = {}.hasOwnProperty, ul = /* @__PURE__ */ new Map(), sl = /[A-Z]/g, ol = /-([a-z])/g, ll = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), cl = /* @__PURE__ */ new Set(["td", "th"]), zi = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
3899
3912
|
function dl(e, t) {
|
|
3900
3913
|
if (!t || t.Fragment === void 0)
|
|
@@ -3912,7 +3925,7 @@ function dl(e, t) {
|
|
|
3912
3925
|
throw new TypeError("Expected `jsx` in production options");
|
|
3913
3926
|
if (typeof t.jsxs != "function")
|
|
3914
3927
|
throw new TypeError("Expected `jsxs` in production options");
|
|
3915
|
-
r =
|
|
3928
|
+
r = El(n, t.jsx, t.jsxs);
|
|
3916
3929
|
}
|
|
3917
3930
|
const a = {
|
|
3918
3931
|
Fragment: t.Fragment,
|
|
@@ -3948,7 +3961,7 @@ function Yi(e, t, n) {
|
|
|
3948
3961
|
if (t.type === "root")
|
|
3949
3962
|
return gl(e, t, n);
|
|
3950
3963
|
if (t.type === "text")
|
|
3951
|
-
return
|
|
3964
|
+
return bl(e, t);
|
|
3952
3965
|
}
|
|
3953
3966
|
function fl(e, t, n) {
|
|
3954
3967
|
const r = e.schema;
|
|
@@ -3987,7 +4000,7 @@ function gl(e, t, n) {
|
|
|
3987
4000
|
const r = {};
|
|
3988
4001
|
return xr(r, kr(e, t)), e.create(t, e.Fragment, r, n);
|
|
3989
4002
|
}
|
|
3990
|
-
function
|
|
4003
|
+
function bl(e, t) {
|
|
3991
4004
|
return t.value;
|
|
3992
4005
|
}
|
|
3993
4006
|
function ji(e, t, n, r) {
|
|
@@ -3999,7 +4012,7 @@ function xr(e, t) {
|
|
|
3999
4012
|
n && (e.children = n);
|
|
4000
4013
|
}
|
|
4001
4014
|
}
|
|
4002
|
-
function
|
|
4015
|
+
function El(e, t, n) {
|
|
4003
4016
|
return r;
|
|
4004
4017
|
function r(a, u, i, o) {
|
|
4005
4018
|
const c = Array.isArray(i.children) ? n : t;
|
|
@@ -4117,7 +4130,7 @@ function Cl(e, t) {
|
|
|
4117
4130
|
const u = (
|
|
4118
4131
|
/** @type {Error} */
|
|
4119
4132
|
a
|
|
4120
|
-
), i = new
|
|
4133
|
+
), i = new be("Cannot parse `style` attribute", {
|
|
4121
4134
|
ancestors: e.ancestors,
|
|
4122
4135
|
cause: u,
|
|
4123
4136
|
ruleId: "style",
|
|
@@ -4164,7 +4177,7 @@ function Gi(e, t, n) {
|
|
|
4164
4177
|
Wt(e);
|
|
4165
4178
|
}
|
|
4166
4179
|
function Wt(e, t) {
|
|
4167
|
-
const n = new
|
|
4180
|
+
const n = new be(
|
|
4168
4181
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
4169
4182
|
{
|
|
4170
4183
|
ancestors: e.ancestors,
|
|
@@ -4400,7 +4413,7 @@ function Fl(e) {
|
|
|
4400
4413
|
}
|
|
4401
4414
|
const Bl = {
|
|
4402
4415
|
tokenize: vl
|
|
4403
|
-
},
|
|
4416
|
+
}, ba = {
|
|
4404
4417
|
tokenize: Hl
|
|
4405
4418
|
};
|
|
4406
4419
|
function vl(e) {
|
|
@@ -4444,32 +4457,32 @@ function vl(e) {
|
|
|
4444
4457
|
function c(I) {
|
|
4445
4458
|
if (r === n.length) {
|
|
4446
4459
|
if (!a)
|
|
4447
|
-
return
|
|
4460
|
+
return b(I);
|
|
4448
4461
|
if (a.currentConstruct && a.currentConstruct.concrete)
|
|
4449
4462
|
return h(I);
|
|
4450
4463
|
t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
|
4451
4464
|
}
|
|
4452
4465
|
return t.containerState = {}, e.check(
|
|
4453
|
-
|
|
4466
|
+
ba,
|
|
4454
4467
|
f,
|
|
4455
4468
|
d
|
|
4456
4469
|
)(I);
|
|
4457
4470
|
}
|
|
4458
4471
|
function f(I) {
|
|
4459
|
-
return a && x(), _(r),
|
|
4472
|
+
return a && x(), _(r), b(I);
|
|
4460
4473
|
}
|
|
4461
4474
|
function d(I) {
|
|
4462
4475
|
return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, h(I);
|
|
4463
4476
|
}
|
|
4464
|
-
function
|
|
4477
|
+
function b(I) {
|
|
4465
4478
|
return t.containerState = {}, e.attempt(
|
|
4466
|
-
|
|
4479
|
+
ba,
|
|
4467
4480
|
m,
|
|
4468
4481
|
h
|
|
4469
4482
|
)(I);
|
|
4470
4483
|
}
|
|
4471
4484
|
function m(I) {
|
|
4472
|
-
return r++, n.push([t.currentConstruct, t.containerState]),
|
|
4485
|
+
return r++, n.push([t.currentConstruct, t.containerState]), b(I);
|
|
4473
4486
|
}
|
|
4474
4487
|
function h(I) {
|
|
4475
4488
|
if (I === null) {
|
|
@@ -4480,14 +4493,14 @@ function vl(e) {
|
|
|
4480
4493
|
contentType: "flow",
|
|
4481
4494
|
previous: u,
|
|
4482
4495
|
_tokenizer: a
|
|
4483
|
-
}),
|
|
4496
|
+
}), E(I);
|
|
4484
4497
|
}
|
|
4485
|
-
function
|
|
4498
|
+
function E(I) {
|
|
4486
4499
|
if (I === null) {
|
|
4487
4500
|
y(e.exit("chunkFlow"), !0), _(0), e.consume(I);
|
|
4488
4501
|
return;
|
|
4489
4502
|
}
|
|
4490
|
-
return z(I) ? (e.consume(I), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(I),
|
|
4503
|
+
return z(I) ? (e.consume(I), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(I), E);
|
|
4491
4504
|
}
|
|
4492
4505
|
function y(I, M) {
|
|
4493
4506
|
const B = t.sliceStream(I);
|
|
@@ -4571,15 +4584,15 @@ function Ul(e, t) {
|
|
|
4571
4584
|
if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
|
|
4572
4585
|
continue;
|
|
4573
4586
|
l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
4574
|
-
const d = Object.assign({}, e[r][1].end),
|
|
4575
|
-
|
|
4587
|
+
const d = Object.assign({}, e[r][1].end), b = Object.assign({}, e[n][1].start);
|
|
4588
|
+
Ea(d, -l), Ea(b, l), i = {
|
|
4576
4589
|
type: l > 1 ? "strongSequence" : "emphasisSequence",
|
|
4577
4590
|
start: d,
|
|
4578
4591
|
end: Object.assign({}, e[r][1].end)
|
|
4579
4592
|
}, o = {
|
|
4580
4593
|
type: l > 1 ? "strongSequence" : "emphasisSequence",
|
|
4581
4594
|
start: Object.assign({}, e[n][1].start),
|
|
4582
|
-
end:
|
|
4595
|
+
end: b
|
|
4583
4596
|
}, u = {
|
|
4584
4597
|
type: l > 1 ? "strongText" : "emphasisText",
|
|
4585
4598
|
start: Object.assign({}, e[r][1].end),
|
|
@@ -4629,11 +4642,11 @@ function zl(e, t) {
|
|
|
4629
4642
|
function o(l) {
|
|
4630
4643
|
if (l === u)
|
|
4631
4644
|
return e.consume(l), o;
|
|
4632
|
-
const c = e.exit("attentionSequence"), f = gn(l), d = !f || f === 2 && a || n.includes(l),
|
|
4633
|
-
return c._open = !!(u === 42 ? d : d && (a || !
|
|
4645
|
+
const c = e.exit("attentionSequence"), f = gn(l), d = !f || f === 2 && a || n.includes(l), b = !a || a === 2 && f || n.includes(r);
|
|
4646
|
+
return c._open = !!(u === 42 ? d : d && (a || !b)), c._close = !!(u === 42 ? b : b && (f || !d)), t(l);
|
|
4634
4647
|
}
|
|
4635
4648
|
}
|
|
4636
|
-
function
|
|
4649
|
+
function Ea(e, t) {
|
|
4637
4650
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
4638
4651
|
}
|
|
4639
4652
|
const Yl = {
|
|
@@ -4665,11 +4678,11 @@ function jl(e, t, n) {
|
|
|
4665
4678
|
return ge(m) ? d(m) : n(m);
|
|
4666
4679
|
}
|
|
4667
4680
|
function d(m) {
|
|
4668
|
-
return m === 46 ? (e.consume(m), r = 0, f) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) :
|
|
4681
|
+
return m === 46 ? (e.consume(m), r = 0, f) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : b(m);
|
|
4669
4682
|
}
|
|
4670
|
-
function
|
|
4683
|
+
function b(m) {
|
|
4671
4684
|
if ((m === 45 || ge(m)) && r++ < 63) {
|
|
4672
|
-
const h = m === 45 ?
|
|
4685
|
+
const h = m === 45 ? b : d;
|
|
4673
4686
|
return e.consume(m), h;
|
|
4674
4687
|
}
|
|
4675
4688
|
return n(m);
|
|
@@ -4762,8 +4775,8 @@ function Ql(e, t, n) {
|
|
|
4762
4775
|
}
|
|
4763
4776
|
function f(d) {
|
|
4764
4777
|
if (d === 59 && a) {
|
|
4765
|
-
const
|
|
4766
|
-
return i === ge && !Sr(r.sliceSerialize(
|
|
4778
|
+
const b = e.exit("characterReferenceValue");
|
|
4779
|
+
return i === ge && !Sr(r.sliceSerialize(b)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
4767
4780
|
}
|
|
4768
4781
|
return i(d) && a++ < u ? (e.consume(d), f) : n(d);
|
|
4769
4782
|
}
|
|
@@ -4794,12 +4807,12 @@ function Xl(e, t, n) {
|
|
|
4794
4807
|
return R === o ? (i++, e.consume(R), f) : i < 3 ? n(R) : (e.exit("codeFencedFenceSequence"), K(R) ? J(e, d, "whitespace")(R) : d(R));
|
|
4795
4808
|
}
|
|
4796
4809
|
function d(R) {
|
|
4797
|
-
return R === null || z(R) ? (e.exit("codeFencedFence"), r.interrupt ? t(R) : e.check(Ta,
|
|
4810
|
+
return R === null || z(R) ? (e.exit("codeFencedFence"), r.interrupt ? t(R) : e.check(Ta, E, M)(R)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
4798
4811
|
contentType: "string"
|
|
4799
|
-
}),
|
|
4812
|
+
}), b(R));
|
|
4800
4813
|
}
|
|
4801
|
-
function
|
|
4802
|
-
return R === null || z(R) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(R)) : K(R) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), J(e, m, "whitespace")(R)) : R === 96 && R === o ? n(R) : (e.consume(R),
|
|
4814
|
+
function b(R) {
|
|
4815
|
+
return R === null || z(R) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(R)) : K(R) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), J(e, m, "whitespace")(R)) : R === 96 && R === o ? n(R) : (e.consume(R), b);
|
|
4803
4816
|
}
|
|
4804
4817
|
function m(R) {
|
|
4805
4818
|
return R === null || z(R) ? d(R) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -4809,7 +4822,7 @@ function Xl(e, t, n) {
|
|
|
4809
4822
|
function h(R) {
|
|
4810
4823
|
return R === null || z(R) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(R)) : R === 96 && R === o ? n(R) : (e.consume(R), h);
|
|
4811
4824
|
}
|
|
4812
|
-
function
|
|
4825
|
+
function E(R) {
|
|
4813
4826
|
return e.attempt(a, M, y)(R);
|
|
4814
4827
|
}
|
|
4815
4828
|
function y(R) {
|
|
@@ -4824,7 +4837,7 @@ function Xl(e, t, n) {
|
|
|
4824
4837
|
)(R) : x(R);
|
|
4825
4838
|
}
|
|
4826
4839
|
function x(R) {
|
|
4827
|
-
return R === null || z(R) ? e.check(Ta,
|
|
4840
|
+
return R === null || z(R) ? e.check(Ta, E, M)(R) : (e.enter("codeFlowValue"), I(R));
|
|
4828
4841
|
}
|
|
4829
4842
|
function I(R) {
|
|
4830
4843
|
return R === null || z(R) ? (e.exit("codeFlowValue"), x(R)) : (e.consume(R), I);
|
|
@@ -4969,22 +4982,22 @@ function ic(e, t) {
|
|
|
4969
4982
|
const n = e[t][1], r = e[t][2];
|
|
4970
4983
|
let a = t - 1;
|
|
4971
4984
|
const u = [], i = n._tokenizer || r.parser[n.contentType](n.start), o = i.events, l = [], c = {};
|
|
4972
|
-
let f, d,
|
|
4973
|
-
const y = [
|
|
4985
|
+
let f, d, b = -1, m = n, h = 0, E = 0;
|
|
4986
|
+
const y = [E];
|
|
4974
4987
|
for (; m; ) {
|
|
4975
4988
|
for (; e[++a][1] !== m; )
|
|
4976
4989
|
;
|
|
4977
4990
|
u.push(a), m._tokenizer || (f = r.sliceStream(m), m.next || f.push(null), d && i.defineSkip(m.start), m._isInFirstContentOfListItem && (i._gfmTasklistFirstContentOfListItem = !0), i.write(f), m._isInFirstContentOfListItem && (i._gfmTasklistFirstContentOfListItem = void 0)), d = m, m = m.next;
|
|
4978
4991
|
}
|
|
4979
|
-
for (m = n; ++
|
|
4992
|
+
for (m = n; ++b < o.length; )
|
|
4980
4993
|
// Find a void token that includes a break.
|
|
4981
|
-
o[
|
|
4982
|
-
for (i.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : y.pop(),
|
|
4983
|
-
const _ = o.slice(y[
|
|
4994
|
+
o[b][0] === "exit" && o[b - 1][0] === "enter" && o[b][1].type === o[b - 1][1].type && o[b][1].start.line !== o[b][1].end.line && (E = b + 1, y.push(E), m._tokenizer = void 0, m.previous = void 0, m = m.next);
|
|
4995
|
+
for (i.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : y.pop(), b = y.length; b--; ) {
|
|
4996
|
+
const _ = o.slice(y[b], y[b + 1]), x = u.pop();
|
|
4984
4997
|
l.unshift([x, x + _.length - 1]), Ne(e, x, 2, _);
|
|
4985
4998
|
}
|
|
4986
|
-
for (
|
|
4987
|
-
c[h + l[
|
|
4999
|
+
for (b = -1; ++b < l.length; )
|
|
5000
|
+
c[h + l[b][0]] = h + l[b][1], h += l[b][1] - l[b][0] - 1;
|
|
4988
5001
|
return c;
|
|
4989
5002
|
}
|
|
4990
5003
|
const uc = {
|
|
@@ -5040,26 +5053,26 @@ function Zi(e, t, n, r, a, u, i, o, l) {
|
|
|
5040
5053
|
let f = 0;
|
|
5041
5054
|
return d;
|
|
5042
5055
|
function d(_) {
|
|
5043
|
-
return _ === 60 ? (e.enter(r), e.enter(a), e.enter(u), e.consume(_), e.exit(u),
|
|
5056
|
+
return _ === 60 ? (e.enter(r), e.enter(a), e.enter(u), e.consume(_), e.exit(u), b) : _ === null || _ === 32 || _ === 41 || mn(_) ? n(_) : (e.enter(r), e.enter(i), e.enter(o), e.enter("chunkString", {
|
|
5044
5057
|
contentType: "string"
|
|
5045
|
-
}),
|
|
5058
|
+
}), E(_));
|
|
5046
5059
|
}
|
|
5047
|
-
function
|
|
5060
|
+
function b(_) {
|
|
5048
5061
|
return _ === 62 ? (e.enter(u), e.consume(_), e.exit(u), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
|
|
5049
5062
|
contentType: "string"
|
|
5050
5063
|
}), m(_));
|
|
5051
5064
|
}
|
|
5052
5065
|
function m(_) {
|
|
5053
|
-
return _ === 62 ? (e.exit("chunkString"), e.exit(o),
|
|
5066
|
+
return _ === 62 ? (e.exit("chunkString"), e.exit(o), b(_)) : _ === null || _ === 60 || z(_) ? n(_) : (e.consume(_), _ === 92 ? h : m);
|
|
5054
5067
|
}
|
|
5055
5068
|
function h(_) {
|
|
5056
5069
|
return _ === 60 || _ === 62 || _ === 92 ? (e.consume(_), m) : m(_);
|
|
5057
5070
|
}
|
|
5058
|
-
function
|
|
5059
|
-
return !f && (_ === null || _ === 41 || ie(_)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(_)) : f < c && _ === 40 ? (e.consume(_), f++,
|
|
5071
|
+
function E(_) {
|
|
5072
|
+
return !f && (_ === null || _ === 41 || ie(_)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(_)) : f < c && _ === 40 ? (e.consume(_), f++, E) : _ === 41 ? (e.consume(_), f--, E) : _ === null || _ === 32 || _ === 40 || mn(_) ? n(_) : (e.consume(_), _ === 92 ? y : E);
|
|
5060
5073
|
}
|
|
5061
5074
|
function y(_) {
|
|
5062
|
-
return _ === 40 || _ === 41 || _ === 92 ? (e.consume(_),
|
|
5075
|
+
return _ === 40 || _ === 41 || _ === 92 ? (e.consume(_), E) : E(_);
|
|
5063
5076
|
}
|
|
5064
5077
|
}
|
|
5065
5078
|
function Ji(e, t, n, r, a, u) {
|
|
@@ -5080,31 +5093,31 @@ function Ji(e, t, n, r, a, u) {
|
|
|
5080
5093
|
}), d(m));
|
|
5081
5094
|
}
|
|
5082
5095
|
function d(m) {
|
|
5083
|
-
return m === null || m === 91 || m === 93 || z(m) || o++ > 999 ? (e.exit("chunkString"), f(m)) : (e.consume(m), l || (l = !K(m)), m === 92 ?
|
|
5096
|
+
return m === null || m === 91 || m === 93 || z(m) || o++ > 999 ? (e.exit("chunkString"), f(m)) : (e.consume(m), l || (l = !K(m)), m === 92 ? b : d);
|
|
5084
5097
|
}
|
|
5085
|
-
function
|
|
5098
|
+
function b(m) {
|
|
5086
5099
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, d) : d(m);
|
|
5087
5100
|
}
|
|
5088
5101
|
}
|
|
5089
5102
|
function eu(e, t, n, r, a, u) {
|
|
5090
5103
|
let i;
|
|
5091
5104
|
return o;
|
|
5092
|
-
function o(
|
|
5093
|
-
return
|
|
5105
|
+
function o(b) {
|
|
5106
|
+
return b === 34 || b === 39 || b === 40 ? (e.enter(r), e.enter(a), e.consume(b), e.exit(a), i = b === 40 ? 41 : b, l) : n(b);
|
|
5094
5107
|
}
|
|
5095
|
-
function l(
|
|
5096
|
-
return
|
|
5108
|
+
function l(b) {
|
|
5109
|
+
return b === i ? (e.enter(a), e.consume(b), e.exit(a), e.exit(r), t) : (e.enter(u), c(b));
|
|
5097
5110
|
}
|
|
5098
|
-
function c(
|
|
5099
|
-
return
|
|
5111
|
+
function c(b) {
|
|
5112
|
+
return b === i ? (e.exit(u), l(i)) : b === null ? n(b) : z(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), J(e, c, "linePrefix")) : (e.enter("chunkString", {
|
|
5100
5113
|
contentType: "string"
|
|
5101
|
-
}), f(
|
|
5114
|
+
}), f(b));
|
|
5102
5115
|
}
|
|
5103
|
-
function f(
|
|
5104
|
-
return
|
|
5116
|
+
function f(b) {
|
|
5117
|
+
return b === i || b === null || z(b) ? (e.exit("chunkString"), c(b)) : (e.consume(b), b === 92 ? d : f);
|
|
5105
5118
|
}
|
|
5106
|
-
function d(
|
|
5107
|
-
return
|
|
5119
|
+
function d(b) {
|
|
5120
|
+
return b === i || b === 92 ? (e.consume(b), f) : f(b);
|
|
5108
5121
|
}
|
|
5109
5122
|
}
|
|
5110
5123
|
function Ht(e, t) {
|
|
@@ -5169,9 +5182,9 @@ function hc(e, t, n) {
|
|
|
5169
5182
|
return e.attempt(fc, d, d)(m);
|
|
5170
5183
|
}
|
|
5171
5184
|
function d(m) {
|
|
5172
|
-
return K(m) ? J(e,
|
|
5185
|
+
return K(m) ? J(e, b, "whitespace")(m) : b(m);
|
|
5173
5186
|
}
|
|
5174
|
-
function
|
|
5187
|
+
function b(m) {
|
|
5175
5188
|
return m === null || z(m) ? (e.exit("definition"), r.parser.defined.push(a), t(m)) : n(m);
|
|
5176
5189
|
}
|
|
5177
5190
|
}
|
|
@@ -5210,12 +5223,12 @@ function gc(e, t, n) {
|
|
|
5210
5223
|
return z(u) ? (e.exit("hardBreakEscape"), t(u)) : n(u);
|
|
5211
5224
|
}
|
|
5212
5225
|
}
|
|
5213
|
-
const
|
|
5226
|
+
const bc = {
|
|
5214
5227
|
name: "headingAtx",
|
|
5215
5228
|
tokenize: Tc,
|
|
5216
|
-
resolve:
|
|
5229
|
+
resolve: Ec
|
|
5217
5230
|
};
|
|
5218
|
-
function
|
|
5231
|
+
function Ec(e, t) {
|
|
5219
5232
|
let n = e.length - 2, r = 3, a, u;
|
|
5220
5233
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (a = {
|
|
5221
5234
|
type: "atxHeadingText",
|
|
@@ -5347,9 +5360,9 @@ function kc(e, t, n) {
|
|
|
5347
5360
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(C), d;
|
|
5348
5361
|
}
|
|
5349
5362
|
function d(C) {
|
|
5350
|
-
return C === 33 ? (e.consume(C),
|
|
5363
|
+
return C === 33 ? (e.consume(C), b) : C === 47 ? (e.consume(C), u = !0, E) : C === 63 ? (e.consume(C), a = 3, r.interrupt ? t : A) : ye(C) ? (e.consume(C), i = String.fromCharCode(C), y) : n(C);
|
|
5351
5364
|
}
|
|
5352
|
-
function
|
|
5365
|
+
function b(C) {
|
|
5353
5366
|
return C === 45 ? (e.consume(C), a = 2, m) : C === 91 ? (e.consume(C), a = 5, o = 0, h) : ye(C) ? (e.consume(C), a = 4, r.interrupt ? t : A) : n(C);
|
|
5354
5367
|
}
|
|
5355
5368
|
function m(C) {
|
|
@@ -5359,7 +5372,7 @@ function kc(e, t, n) {
|
|
|
5359
5372
|
const Te = "CDATA[";
|
|
5360
5373
|
return C === Te.charCodeAt(o++) ? (e.consume(C), o === Te.length ? r.interrupt ? t : F : h) : n(C);
|
|
5361
5374
|
}
|
|
5362
|
-
function
|
|
5375
|
+
function E(C) {
|
|
5363
5376
|
return ye(C) ? (e.consume(C), i = String.fromCharCode(C), y) : n(C);
|
|
5364
5377
|
}
|
|
5365
5378
|
function y(C) {
|
|
@@ -5485,26 +5498,26 @@ function Rc(e, t, n) {
|
|
|
5485
5498
|
return A === 45 ? (e.consume(A), m) : n(A);
|
|
5486
5499
|
}
|
|
5487
5500
|
function d(A) {
|
|
5488
|
-
return A === null ? n(A) : A === 45 ? (e.consume(A),
|
|
5501
|
+
return A === null ? n(A) : A === 45 ? (e.consume(A), b) : z(A) ? (i = d, se(A)) : (e.consume(A), d);
|
|
5489
5502
|
}
|
|
5490
|
-
function
|
|
5503
|
+
function b(A) {
|
|
5491
5504
|
return A === 45 ? (e.consume(A), m) : d(A);
|
|
5492
5505
|
}
|
|
5493
5506
|
function m(A) {
|
|
5494
|
-
return A === 62 ? te(A) : A === 45 ?
|
|
5507
|
+
return A === 62 ? te(A) : A === 45 ? b(A) : d(A);
|
|
5495
5508
|
}
|
|
5496
5509
|
function h(A) {
|
|
5497
5510
|
const ae = "CDATA[";
|
|
5498
|
-
return A === ae.charCodeAt(u++) ? (e.consume(A), u === ae.length ?
|
|
5511
|
+
return A === ae.charCodeAt(u++) ? (e.consume(A), u === ae.length ? E : h) : n(A);
|
|
5499
5512
|
}
|
|
5500
|
-
function
|
|
5501
|
-
return A === null ? n(A) : A === 93 ? (e.consume(A), y) : z(A) ? (i =
|
|
5513
|
+
function E(A) {
|
|
5514
|
+
return A === null ? n(A) : A === 93 ? (e.consume(A), y) : z(A) ? (i = E, se(A)) : (e.consume(A), E);
|
|
5502
5515
|
}
|
|
5503
5516
|
function y(A) {
|
|
5504
|
-
return A === 93 ? (e.consume(A), _) :
|
|
5517
|
+
return A === 93 ? (e.consume(A), _) : E(A);
|
|
5505
5518
|
}
|
|
5506
5519
|
function _(A) {
|
|
5507
|
-
return A === 62 ? te(A) : A === 93 ? (e.consume(A), _) :
|
|
5520
|
+
return A === 62 ? te(A) : A === 93 ? (e.consume(A), _) : E(A);
|
|
5508
5521
|
}
|
|
5509
5522
|
function x(A) {
|
|
5510
5523
|
return A === null || A === 62 ? te(A) : z(A) ? (i = x, se(A)) : (e.consume(A), x);
|
|
@@ -5638,39 +5651,39 @@ function Mc(e, t, n) {
|
|
|
5638
5651
|
break;
|
|
5639
5652
|
}
|
|
5640
5653
|
return o;
|
|
5641
|
-
function o(
|
|
5642
|
-
return u ? u._inactive ? d(
|
|
5654
|
+
function o(b) {
|
|
5655
|
+
return u ? u._inactive ? d(b) : (i = r.parser.defined.includes(
|
|
5643
5656
|
De(
|
|
5644
5657
|
r.sliceSerialize({
|
|
5645
5658
|
start: u.end,
|
|
5646
5659
|
end: r.now()
|
|
5647
5660
|
})
|
|
5648
5661
|
)
|
|
5649
|
-
), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(
|
|
5662
|
+
), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(b), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(b);
|
|
5650
5663
|
}
|
|
5651
|
-
function l(
|
|
5652
|
-
return
|
|
5664
|
+
function l(b) {
|
|
5665
|
+
return b === 40 ? e.attempt(
|
|
5653
5666
|
Lc,
|
|
5654
5667
|
f,
|
|
5655
5668
|
i ? f : d
|
|
5656
|
-
)(
|
|
5669
|
+
)(b) : b === 91 ? e.attempt(
|
|
5657
5670
|
Oc,
|
|
5658
5671
|
f,
|
|
5659
5672
|
i ? c : d
|
|
5660
|
-
)(
|
|
5673
|
+
)(b) : i ? f(b) : d(b);
|
|
5661
5674
|
}
|
|
5662
|
-
function c(
|
|
5675
|
+
function c(b) {
|
|
5663
5676
|
return e.attempt(
|
|
5664
5677
|
wc,
|
|
5665
5678
|
f,
|
|
5666
5679
|
d
|
|
5667
|
-
)(
|
|
5680
|
+
)(b);
|
|
5668
5681
|
}
|
|
5669
|
-
function f(
|
|
5670
|
-
return t(
|
|
5682
|
+
function f(b) {
|
|
5683
|
+
return t(b);
|
|
5671
5684
|
}
|
|
5672
|
-
function d(
|
|
5673
|
-
return u._balanced = !0, n(
|
|
5685
|
+
function d(b) {
|
|
5686
|
+
return u._balanced = !0, n(b);
|
|
5674
5687
|
}
|
|
5675
5688
|
}
|
|
5676
5689
|
function Fc(e, t, n) {
|
|
@@ -5854,18 +5867,18 @@ function Wc(e, t, n) {
|
|
|
5854
5867
|
r.interrupt ? n : f,
|
|
5855
5868
|
e.attempt(
|
|
5856
5869
|
qc,
|
|
5857
|
-
|
|
5870
|
+
b,
|
|
5858
5871
|
d
|
|
5859
5872
|
)
|
|
5860
5873
|
);
|
|
5861
5874
|
}
|
|
5862
5875
|
function f(m) {
|
|
5863
|
-
return r.containerState.initialBlankLine = !0, u++,
|
|
5876
|
+
return r.containerState.initialBlankLine = !0, u++, b(m);
|
|
5864
5877
|
}
|
|
5865
5878
|
function d(m) {
|
|
5866
|
-
return K(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"),
|
|
5879
|
+
return K(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"), b) : n(m);
|
|
5867
5880
|
}
|
|
5868
|
-
function
|
|
5881
|
+
function b(m) {
|
|
5869
5882
|
return r.containerState.size = u + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(m);
|
|
5870
5883
|
}
|
|
5871
5884
|
}
|
|
@@ -6036,10 +6049,10 @@ function tu(e) {
|
|
|
6036
6049
|
if (f === null)
|
|
6037
6050
|
return !0;
|
|
6038
6051
|
const d = a[f];
|
|
6039
|
-
let
|
|
6052
|
+
let b = -1;
|
|
6040
6053
|
if (d)
|
|
6041
|
-
for (; ++
|
|
6042
|
-
const m = d[
|
|
6054
|
+
for (; ++b < d.length; ) {
|
|
6055
|
+
const m = d[b];
|
|
6043
6056
|
if (!m.previous || m.previous.call(r, r.previous))
|
|
6044
6057
|
return !0;
|
|
6045
6058
|
}
|
|
@@ -6129,9 +6142,9 @@ function ud(e, t, n) {
|
|
|
6129
6142
|
events: [],
|
|
6130
6143
|
parser: e,
|
|
6131
6144
|
sliceStream: m,
|
|
6132
|
-
sliceSerialize:
|
|
6145
|
+
sliceSerialize: b,
|
|
6133
6146
|
now: h,
|
|
6134
|
-
defineSkip:
|
|
6147
|
+
defineSkip: E,
|
|
6135
6148
|
write: d
|
|
6136
6149
|
};
|
|
6137
6150
|
let f = t.tokenize.call(c, l);
|
|
@@ -6139,7 +6152,7 @@ function ud(e, t, n) {
|
|
|
6139
6152
|
function d(H) {
|
|
6140
6153
|
return i = Re(i, H), y(), i[i.length - 1] !== null ? [] : (q(t, 0), c.events = kn(u, c.events, c), c.events);
|
|
6141
6154
|
}
|
|
6142
|
-
function
|
|
6155
|
+
function b(H, F) {
|
|
6143
6156
|
return od(m(H), F);
|
|
6144
6157
|
}
|
|
6145
6158
|
function m(H) {
|
|
@@ -6155,7 +6168,7 @@ function ud(e, t, n) {
|
|
|
6155
6168
|
_bufferIndex: j
|
|
6156
6169
|
};
|
|
6157
6170
|
}
|
|
6158
|
-
function
|
|
6171
|
+
function E(H) {
|
|
6159
6172
|
a[H.line] = H.column, S();
|
|
6160
6173
|
}
|
|
6161
6174
|
function y() {
|
|
@@ -6333,7 +6346,7 @@ const ld = {
|
|
|
6333
6346
|
[-1]: Hn,
|
|
6334
6347
|
32: Hn
|
|
6335
6348
|
}, fd = {
|
|
6336
|
-
35:
|
|
6349
|
+
35: bc,
|
|
6337
6350
|
42: ln,
|
|
6338
6351
|
45: [_a, ln],
|
|
6339
6352
|
60: Ac,
|
|
@@ -6361,13 +6374,13 @@ const ld = {
|
|
|
6361
6374
|
null: [ur, nd]
|
|
6362
6375
|
}, gd = {
|
|
6363
6376
|
null: [42, 95]
|
|
6364
|
-
},
|
|
6377
|
+
}, bd = {
|
|
6365
6378
|
null: []
|
|
6366
|
-
},
|
|
6379
|
+
}, Ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6367
6380
|
__proto__: null,
|
|
6368
6381
|
attentionMarkers: gd,
|
|
6369
6382
|
contentInitial: cd,
|
|
6370
|
-
disable:
|
|
6383
|
+
disable: bd,
|
|
6371
6384
|
document: ld,
|
|
6372
6385
|
flow: fd,
|
|
6373
6386
|
flowInitial: dd,
|
|
@@ -6378,7 +6391,7 @@ const ld = {
|
|
|
6378
6391
|
function Td(e) {
|
|
6379
6392
|
const n = (
|
|
6380
6393
|
/** @type {FullNormalizedExtension} */
|
|
6381
|
-
$i([
|
|
6394
|
+
$i([Ed, ...(e || {}).extensions || []])
|
|
6382
6395
|
), r = {
|
|
6383
6396
|
defined: [],
|
|
6384
6397
|
lazy: {},
|
|
@@ -6408,16 +6421,16 @@ function Ad() {
|
|
|
6408
6421
|
return a;
|
|
6409
6422
|
function a(u, i, o) {
|
|
6410
6423
|
const l = [];
|
|
6411
|
-
let c, f, d,
|
|
6424
|
+
let c, f, d, b, m;
|
|
6412
6425
|
for (u = t + (typeof u == "string" ? u.toString() : new TextDecoder(i || void 0).decode(u)), d = 0, t = "", n && (u.charCodeAt(0) === 65279 && d++, n = void 0); d < u.length; ) {
|
|
6413
|
-
if (Ca.lastIndex = d, c = Ca.exec(u),
|
|
6426
|
+
if (Ca.lastIndex = d, c = Ca.exec(u), b = c && c.index !== void 0 ? c.index : u.length, m = u.charCodeAt(b), !c) {
|
|
6414
6427
|
t = u.slice(d);
|
|
6415
6428
|
break;
|
|
6416
6429
|
}
|
|
6417
|
-
if (m === 10 && d ===
|
|
6430
|
+
if (m === 10 && d === b && r)
|
|
6418
6431
|
l.push(-3), r = void 0;
|
|
6419
6432
|
else
|
|
6420
|
-
switch (r && (l.push(-5), r = void 0), d <
|
|
6433
|
+
switch (r && (l.push(-5), r = void 0), d < b && (l.push(u.slice(d, b)), e += b - d), m) {
|
|
6421
6434
|
case 0: {
|
|
6422
6435
|
l.push(65533), e++;
|
|
6423
6436
|
break;
|
|
@@ -6433,7 +6446,7 @@ function Ad() {
|
|
|
6433
6446
|
default:
|
|
6434
6447
|
r = !0, e = 1;
|
|
6435
6448
|
}
|
|
6436
|
-
d =
|
|
6449
|
+
d = b + 1;
|
|
6437
6450
|
}
|
|
6438
6451
|
return o && (r && l.push(-5), t && l.push(t), l.push(null)), l;
|
|
6439
6452
|
}
|
|
@@ -6494,7 +6507,7 @@ function Id(e) {
|
|
|
6494
6507
|
label: i,
|
|
6495
6508
|
link: u(Wr),
|
|
6496
6509
|
listItem: u(Ls),
|
|
6497
|
-
listItemValue:
|
|
6510
|
+
listItemValue: b,
|
|
6498
6511
|
listOrdered: u(Vr, d),
|
|
6499
6512
|
listUnordered: u(Vr),
|
|
6500
6513
|
paragraph: u(Os),
|
|
@@ -6518,7 +6531,7 @@ function Id(e) {
|
|
|
6518
6531
|
characterReferenceMarkerNumeric: Me,
|
|
6519
6532
|
characterReferenceValue: ce,
|
|
6520
6533
|
codeFenced: l(y),
|
|
6521
|
-
codeFencedFence:
|
|
6534
|
+
codeFencedFence: E,
|
|
6522
6535
|
codeFencedFenceInfo: m,
|
|
6523
6536
|
codeFencedFenceMeta: h,
|
|
6524
6537
|
codeFlowValue: S,
|
|
@@ -6715,7 +6728,7 @@ function Id(e) {
|
|
|
6715
6728
|
function d() {
|
|
6716
6729
|
this.data.expectingFirstListItemValue = !0;
|
|
6717
6730
|
}
|
|
6718
|
-
function
|
|
6731
|
+
function b(O) {
|
|
6719
6732
|
if (this.data.expectingFirstListItemValue) {
|
|
6720
6733
|
const v = this.stack[this.stack.length - 2];
|
|
6721
6734
|
v.start = Number.parseInt(this.sliceSerialize(O), 10), this.data.expectingFirstListItemValue = void 0;
|
|
@@ -6729,7 +6742,7 @@ function Id(e) {
|
|
|
6729
6742
|
const O = this.resume(), v = this.stack[this.stack.length - 1];
|
|
6730
6743
|
v.meta = O;
|
|
6731
6744
|
}
|
|
6732
|
-
function
|
|
6745
|
+
function E() {
|
|
6733
6746
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
6734
6747
|
}
|
|
6735
6748
|
function y() {
|
|
@@ -7316,9 +7329,9 @@ function Qd(e, t, n) {
|
|
|
7316
7329
|
let l = -1;
|
|
7317
7330
|
const c = [];
|
|
7318
7331
|
for (; ++l < o; ) {
|
|
7319
|
-
const d = t.children[l],
|
|
7320
|
-
m && (
|
|
7321
|
-
let h = { type: "element", tagName: u, properties:
|
|
7332
|
+
const d = t.children[l], b = {}, m = i ? i[l] : void 0;
|
|
7333
|
+
m && (b.align = m);
|
|
7334
|
+
let h = { type: "element", tagName: u, properties: b, children: [] };
|
|
7322
7335
|
d && (h.children = e.all(d), e.patch(d, h), h = e.applyData(d, h)), c.push(h);
|
|
7323
7336
|
}
|
|
7324
7337
|
const f = {
|
|
@@ -7410,7 +7423,7 @@ const e0 = {
|
|
|
7410
7423
|
};
|
|
7411
7424
|
function nn() {
|
|
7412
7425
|
}
|
|
7413
|
-
const su = -1, In = 0,
|
|
7426
|
+
const su = -1, In = 0, bn = 1, En = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, lu = 8, Na = typeof self == "object" ? self : globalThis, t0 = (e, t) => {
|
|
7414
7427
|
const n = (a, u) => (e.set(u, a), a), r = (a) => {
|
|
7415
7428
|
if (e.has(a))
|
|
7416
7429
|
return e.get(a);
|
|
@@ -7419,13 +7432,13 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7419
7432
|
case In:
|
|
7420
7433
|
case su:
|
|
7421
7434
|
return n(i, a);
|
|
7422
|
-
case
|
|
7435
|
+
case bn: {
|
|
7423
7436
|
const o = n([], a);
|
|
7424
7437
|
for (const l of i)
|
|
7425
7438
|
o.push(r(l));
|
|
7426
7439
|
return o;
|
|
7427
7440
|
}
|
|
7428
|
-
case
|
|
7441
|
+
case En: {
|
|
7429
7442
|
const o = n({}, a);
|
|
7430
7443
|
for (const [l, c] of i)
|
|
7431
7444
|
o[r(l)] = r(c);
|
|
@@ -7468,9 +7481,9 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7468
7481
|
const n = n0.call(e).slice(8, -1);
|
|
7469
7482
|
switch (n) {
|
|
7470
7483
|
case "Array":
|
|
7471
|
-
return [En, pt];
|
|
7472
|
-
case "Object":
|
|
7473
7484
|
return [bn, pt];
|
|
7485
|
+
case "Object":
|
|
7486
|
+
return [En, pt];
|
|
7474
7487
|
case "Date":
|
|
7475
7488
|
return [Rr, pt];
|
|
7476
7489
|
case "RegExp":
|
|
@@ -7480,7 +7493,7 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7480
7493
|
case "Set":
|
|
7481
7494
|
return [wr, pt];
|
|
7482
7495
|
}
|
|
7483
|
-
return n.includes("Array") ? [
|
|
7496
|
+
return n.includes("Array") ? [bn, n] : n.includes("Error") ? [ou, n] : [En, n];
|
|
7484
7497
|
}, rn = ([e, t]) => e === In && (t === "function" || t === "symbol"), a0 = (e, t, n, r) => {
|
|
7485
7498
|
const a = (i, o) => {
|
|
7486
7499
|
const l = r.push(i) - 1;
|
|
@@ -7507,15 +7520,15 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7507
7520
|
}
|
|
7508
7521
|
return a([o, f], i);
|
|
7509
7522
|
}
|
|
7510
|
-
case
|
|
7523
|
+
case bn: {
|
|
7511
7524
|
if (l)
|
|
7512
7525
|
return a([l, [...i]], i);
|
|
7513
7526
|
const f = [], d = a([o, f], i);
|
|
7514
|
-
for (const
|
|
7515
|
-
f.push(u(
|
|
7527
|
+
for (const b of i)
|
|
7528
|
+
f.push(u(b));
|
|
7516
7529
|
return d;
|
|
7517
7530
|
}
|
|
7518
|
-
case
|
|
7531
|
+
case En: {
|
|
7519
7532
|
if (l)
|
|
7520
7533
|
switch (l) {
|
|
7521
7534
|
case "BigInt":
|
|
@@ -7528,8 +7541,8 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7528
7541
|
if (t && "toJSON" in i)
|
|
7529
7542
|
return u(i.toJSON());
|
|
7530
7543
|
const f = [], d = a([o, f], i);
|
|
7531
|
-
for (const
|
|
7532
|
-
(e || !rn(Pt(i[
|
|
7544
|
+
for (const b of r0(i))
|
|
7545
|
+
(e || !rn(Pt(i[b]))) && f.push([u(b), u(i[b])]);
|
|
7533
7546
|
return d;
|
|
7534
7547
|
}
|
|
7535
7548
|
case Rr:
|
|
@@ -7540,14 +7553,14 @@ const su = -1, In = 0, En = 1, bn = 2, Rr = 3, Lr = 4, Or = 5, wr = 6, ou = 7, l
|
|
|
7540
7553
|
}
|
|
7541
7554
|
case Or: {
|
|
7542
7555
|
const f = [], d = a([o, f], i);
|
|
7543
|
-
for (const [
|
|
7544
|
-
(e || !(rn(Pt(
|
|
7556
|
+
for (const [b, m] of i)
|
|
7557
|
+
(e || !(rn(Pt(b)) || rn(Pt(m)))) && f.push([u(b), u(m)]);
|
|
7545
7558
|
return d;
|
|
7546
7559
|
}
|
|
7547
7560
|
case wr: {
|
|
7548
7561
|
const f = [], d = a([o, f], i);
|
|
7549
|
-
for (const
|
|
7550
|
-
(e || !rn(Pt(
|
|
7562
|
+
for (const b of i)
|
|
7563
|
+
(e || !rn(Pt(b))) && f.push(u(b));
|
|
7551
7564
|
return d;
|
|
7552
7565
|
}
|
|
7553
7566
|
}
|
|
@@ -7583,17 +7596,17 @@ function s0(e) {
|
|
|
7583
7596
|
const c = e.footnoteById.get(e.footnoteOrder[l]);
|
|
7584
7597
|
if (!c)
|
|
7585
7598
|
continue;
|
|
7586
|
-
const f = e.all(c), d = String(c.identifier).toUpperCase(),
|
|
7599
|
+
const f = e.all(c), d = String(c.identifier).toUpperCase(), b = It(d.toLowerCase());
|
|
7587
7600
|
let m = 0;
|
|
7588
|
-
const h = [],
|
|
7589
|
-
for (;
|
|
7601
|
+
const h = [], E = e.footnoteCounts.get(d);
|
|
7602
|
+
for (; E !== void 0 && ++m <= E; ) {
|
|
7590
7603
|
h.length > 0 && h.push({ type: "text", value: " " });
|
|
7591
7604
|
let x = typeof n == "string" ? n : n(l, m);
|
|
7592
7605
|
typeof x == "string" && (x = { type: "text", value: x }), h.push({
|
|
7593
7606
|
type: "element",
|
|
7594
7607
|
tagName: "a",
|
|
7595
7608
|
properties: {
|
|
7596
|
-
href: "#" + t + "fnref-" +
|
|
7609
|
+
href: "#" + t + "fnref-" + b + (m > 1 ? "-" + m : ""),
|
|
7597
7610
|
dataFootnoteBackref: "",
|
|
7598
7611
|
ariaLabel: typeof r == "string" ? r : r(l, m),
|
|
7599
7612
|
className: ["data-footnote-backref"]
|
|
@@ -7610,7 +7623,7 @@ function s0(e) {
|
|
|
7610
7623
|
const _ = {
|
|
7611
7624
|
type: "element",
|
|
7612
7625
|
tagName: "li",
|
|
7613
|
-
properties: { id: t + "fn-" +
|
|
7626
|
+
properties: { id: t + "fn-" + b },
|
|
7614
7627
|
children: e.wrap(f, !0)
|
|
7615
7628
|
};
|
|
7616
7629
|
e.patch(c, _), o.push(_);
|
|
@@ -7743,13 +7756,13 @@ function du(e, t, n, r) {
|
|
|
7743
7756
|
typeof d.name == "string" ? d.name : void 0
|
|
7744
7757
|
)
|
|
7745
7758
|
);
|
|
7746
|
-
Object.defineProperty(
|
|
7759
|
+
Object.defineProperty(b, "name", {
|
|
7747
7760
|
value: "node (" + (l.type + (m ? "<" + m + ">" : "")) + ")"
|
|
7748
7761
|
});
|
|
7749
7762
|
}
|
|
7750
|
-
return
|
|
7751
|
-
function
|
|
7752
|
-
let m = cu, h,
|
|
7763
|
+
return b;
|
|
7764
|
+
function b() {
|
|
7765
|
+
let m = cu, h, E, y;
|
|
7753
7766
|
if ((!t || u(l, c, f[f.length - 1] || void 0)) && (m = m0(n(l, f)), m[0] === sr))
|
|
7754
7767
|
return m;
|
|
7755
7768
|
if ("children" in l && l.children) {
|
|
@@ -7758,11 +7771,11 @@ function du(e, t, n, r) {
|
|
|
7758
7771
|
l
|
|
7759
7772
|
);
|
|
7760
7773
|
if (_.children && m[0] !== p0)
|
|
7761
|
-
for (
|
|
7762
|
-
const x = _.children[
|
|
7763
|
-
if (h = o(x,
|
|
7774
|
+
for (E = (r ? _.children.length : -1) + i, y = f.concat(_); E > -1 && E < _.children.length; ) {
|
|
7775
|
+
const x = _.children[E];
|
|
7776
|
+
if (h = o(x, E, y)(), h[0] === sr)
|
|
7764
7777
|
return h;
|
|
7765
|
-
|
|
7778
|
+
E = typeof h[1] == "number" ? h[1] : E + i;
|
|
7766
7779
|
}
|
|
7767
7780
|
}
|
|
7768
7781
|
return m;
|
|
@@ -7781,7 +7794,7 @@ function Zt(e, t, n, r) {
|
|
|
7781
7794
|
}
|
|
7782
7795
|
}
|
|
7783
7796
|
const or = {}.hasOwnProperty, g0 = {};
|
|
7784
|
-
function
|
|
7797
|
+
function b0(e, t) {
|
|
7785
7798
|
const n = t || g0, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), i = { ...e0, ...n.handlers }, o = {
|
|
7786
7799
|
all: c,
|
|
7787
7800
|
applyData: T0,
|
|
@@ -7792,22 +7805,22 @@ function E0(e, t) {
|
|
|
7792
7805
|
handlers: i,
|
|
7793
7806
|
one: l,
|
|
7794
7807
|
options: n,
|
|
7795
|
-
patch:
|
|
7808
|
+
patch: E0,
|
|
7796
7809
|
wrap: A0
|
|
7797
7810
|
};
|
|
7798
7811
|
return Zt(e, function(f) {
|
|
7799
7812
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
7800
|
-
const d = f.type === "definition" ? r : a,
|
|
7801
|
-
d.has(
|
|
7813
|
+
const d = f.type === "definition" ? r : a, b = String(f.identifier).toUpperCase();
|
|
7814
|
+
d.has(b) || d.set(b, f);
|
|
7802
7815
|
}
|
|
7803
7816
|
}), o;
|
|
7804
7817
|
function l(f, d) {
|
|
7805
|
-
const
|
|
7806
|
-
if (or.call(o.handlers,
|
|
7818
|
+
const b = f.type, m = o.handlers[b];
|
|
7819
|
+
if (or.call(o.handlers, b) && m)
|
|
7807
7820
|
return m(o, f, d);
|
|
7808
|
-
if (o.options.passThrough && o.options.passThrough.includes(
|
|
7821
|
+
if (o.options.passThrough && o.options.passThrough.includes(b)) {
|
|
7809
7822
|
if ("children" in f) {
|
|
7810
|
-
const { children:
|
|
7823
|
+
const { children: E, ...y } = f, _ = _t(y);
|
|
7811
7824
|
return _.children = o.all(f), _;
|
|
7812
7825
|
}
|
|
7813
7826
|
return _t(f);
|
|
@@ -7817,14 +7830,14 @@ function E0(e, t) {
|
|
|
7817
7830
|
function c(f) {
|
|
7818
7831
|
const d = [];
|
|
7819
7832
|
if ("children" in f) {
|
|
7820
|
-
const
|
|
7833
|
+
const b = f.children;
|
|
7821
7834
|
let m = -1;
|
|
7822
|
-
for (; ++m <
|
|
7823
|
-
const h = o.one(
|
|
7835
|
+
for (; ++m < b.length; ) {
|
|
7836
|
+
const h = o.one(b[m], f);
|
|
7824
7837
|
if (h) {
|
|
7825
|
-
if (m &&
|
|
7826
|
-
const
|
|
7827
|
-
|
|
7838
|
+
if (m && b[m - 1].type === "break" && (!Array.isArray(h) && h.type === "text" && (h.value = Oa(h.value)), !Array.isArray(h) && h.type === "element")) {
|
|
7839
|
+
const E = h.children[0];
|
|
7840
|
+
E && E.type === "text" && (E.value = Oa(E.value));
|
|
7828
7841
|
}
|
|
7829
7842
|
Array.isArray(h) ? d.push(...h) : d.push(h);
|
|
7830
7843
|
}
|
|
@@ -7833,7 +7846,7 @@ function E0(e, t) {
|
|
|
7833
7846
|
return d;
|
|
7834
7847
|
}
|
|
7835
7848
|
}
|
|
7836
|
-
function
|
|
7849
|
+
function E0(e, t) {
|
|
7837
7850
|
e.position && (t.position = il(e));
|
|
7838
7851
|
}
|
|
7839
7852
|
function T0(e, t) {
|
|
@@ -7877,7 +7890,7 @@ function Oa(e) {
|
|
|
7877
7890
|
return e.slice(t);
|
|
7878
7891
|
}
|
|
7879
7892
|
function wa(e, t) {
|
|
7880
|
-
const n =
|
|
7893
|
+
const n = b0(e, t), r = n.one(e, void 0), a = s0(n), u = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
7881
7894
|
return a && u.children.push({ type: "text", value: `
|
|
7882
7895
|
` }, a), u;
|
|
7883
7896
|
}
|
|
@@ -8505,7 +8518,7 @@ class hu {
|
|
|
8505
8518
|
* Message.
|
|
8506
8519
|
*/
|
|
8507
8520
|
message(t, n, r) {
|
|
8508
|
-
const a = new
|
|
8521
|
+
const a = new be(
|
|
8509
8522
|
// @ts-expect-error: the overloads are fine.
|
|
8510
8523
|
t,
|
|
8511
8524
|
n,
|
|
@@ -8772,18 +8785,18 @@ class Dr extends B0 {
|
|
|
8772
8785
|
/** @type {unknown} */
|
|
8773
8786
|
r.parse(o)
|
|
8774
8787
|
);
|
|
8775
|
-
r.run(l, o, function(f, d,
|
|
8776
|
-
if (f || !d || !
|
|
8788
|
+
r.run(l, o, function(f, d, b) {
|
|
8789
|
+
if (f || !d || !b)
|
|
8777
8790
|
return c(f);
|
|
8778
8791
|
const m = (
|
|
8779
8792
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
8780
8793
|
/** @type {unknown} */
|
|
8781
8794
|
d
|
|
8782
|
-
), h = r.stringify(m,
|
|
8783
|
-
z0(h) ?
|
|
8795
|
+
), h = r.stringify(m, b);
|
|
8796
|
+
z0(h) ? b.value = h : b.result = h, c(
|
|
8784
8797
|
f,
|
|
8785
8798
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
8786
|
-
|
|
8799
|
+
b
|
|
8787
8800
|
);
|
|
8788
8801
|
});
|
|
8789
8802
|
function c(f, d) {
|
|
@@ -8874,12 +8887,12 @@ class Dr extends B0 {
|
|
|
8874
8887
|
function u(i, o) {
|
|
8875
8888
|
const l = an(n);
|
|
8876
8889
|
a.run(t, l, c);
|
|
8877
|
-
function c(f, d,
|
|
8890
|
+
function c(f, d, b) {
|
|
8878
8891
|
const m = (
|
|
8879
8892
|
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
8880
8893
|
d || t
|
|
8881
8894
|
);
|
|
8882
|
-
f ? o(f) : i ? i(m) : r(void 0, m,
|
|
8895
|
+
f ? o(f) : i ? i(m) : r(void 0, m, b);
|
|
8883
8896
|
}
|
|
8884
8897
|
}
|
|
8885
8898
|
}
|
|
@@ -9040,18 +9053,18 @@ class Dr extends B0 {
|
|
|
9040
9053
|
throw new TypeError("Expected a list of plugins, not `" + c + "`");
|
|
9041
9054
|
}
|
|
9042
9055
|
function l(c, f) {
|
|
9043
|
-
let d = -1,
|
|
9056
|
+
let d = -1, b = -1;
|
|
9044
9057
|
for (; ++d < r.length; )
|
|
9045
9058
|
if (r[d][0] === c) {
|
|
9046
|
-
|
|
9059
|
+
b = d;
|
|
9047
9060
|
break;
|
|
9048
9061
|
}
|
|
9049
|
-
if (
|
|
9062
|
+
if (b === -1)
|
|
9050
9063
|
r.push([c, ...f]);
|
|
9051
9064
|
else if (f.length > 0) {
|
|
9052
9065
|
let [m, ...h] = f;
|
|
9053
|
-
const
|
|
9054
|
-
lr(
|
|
9066
|
+
const E = r[b][1];
|
|
9067
|
+
lr(E) && lr(m) && (m = zn(!0, E, m)), r[b] = [c, m, ...h];
|
|
9055
9068
|
}
|
|
9056
9069
|
}
|
|
9057
9070
|
}
|
|
@@ -9127,12 +9140,12 @@ const j0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
9127
9140
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
9128
9141
|
];
|
|
9129
9142
|
function $0(e) {
|
|
9130
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, u = e.components, i = e.disallowedElements, o = e.rehypePlugins || ja, l = e.remarkPlugins || ja, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ga } : Ga, f = e.skipHtml, d = e.unwrapDisallowed,
|
|
9143
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, u = e.components, i = e.disallowedElements, o = e.rehypePlugins || ja, l = e.remarkPlugins || ja, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ga } : Ga, f = e.skipHtml, d = e.unwrapDisallowed, b = e.urlTransform || W0, m = H0().use(Nd).use(l).use(_0, c).use(o), h = new hu();
|
|
9131
9144
|
typeof r == "string" && (h.value = r);
|
|
9132
9145
|
for (const x of q0)
|
|
9133
9146
|
Object.hasOwn(e, x.from) && ("" + x.from + (x.to ? "use `" + x.to + "` instead" : "remove it") + j0 + x.id, void 0);
|
|
9134
|
-
const
|
|
9135
|
-
let y = m.runSync(
|
|
9147
|
+
const E = m.parse(h);
|
|
9148
|
+
let y = m.runSync(E, h);
|
|
9136
9149
|
return a && (y = {
|
|
9137
9150
|
type: "element",
|
|
9138
9151
|
tagName: "div",
|
|
@@ -9159,7 +9172,7 @@ function $0(e) {
|
|
|
9159
9172
|
for (B in vn)
|
|
9160
9173
|
if (Object.hasOwn(vn, B) && Object.hasOwn(x.properties, B)) {
|
|
9161
9174
|
const R = x.properties[B], U = vn[B];
|
|
9162
|
-
(U === null || U.includes(x.tagName)) && (x.properties[B] =
|
|
9175
|
+
(U === null || U.includes(x.tagName)) && (x.properties[B] = b(String(R || ""), B, x));
|
|
9163
9176
|
}
|
|
9164
9177
|
}
|
|
9165
9178
|
if (x.type === "element") {
|
|
@@ -9460,7 +9473,7 @@ function sf(e, t) {
|
|
|
9460
9473
|
const o = (
|
|
9461
9474
|
/** @type {P5Template} */
|
|
9462
9475
|
t
|
|
9463
|
-
), l = o.sourceCodeLocation, c = l && l.startTag &&
|
|
9476
|
+
), l = o.sourceCodeLocation, c = l && l.startTag && Et(l.startTag), f = l && l.endTag && Et(l.endTag), d = (
|
|
9464
9477
|
/** @type {Root} */
|
|
9465
9478
|
Pr(e, o.content)
|
|
9466
9479
|
);
|
|
@@ -9475,7 +9488,7 @@ function dn(e, t, n) {
|
|
|
9475
9488
|
}
|
|
9476
9489
|
}
|
|
9477
9490
|
function of(e, t, n) {
|
|
9478
|
-
const r =
|
|
9491
|
+
const r = Et(n);
|
|
9479
9492
|
if (t.type === "element") {
|
|
9480
9493
|
const a = t.children[t.children.length - 1];
|
|
9481
9494
|
if (r && !n.endTag && a && a.position && a.position.end && (r.end = Object.assign({}, a.position.end)), e.verbose) {
|
|
@@ -9483,17 +9496,17 @@ function of(e, t, n) {
|
|
|
9483
9496
|
let i;
|
|
9484
9497
|
if (n.attrs)
|
|
9485
9498
|
for (i in n.attrs)
|
|
9486
|
-
mu.call(n.attrs, i) && (u[_n(e.schema, i).property] =
|
|
9499
|
+
mu.call(n.attrs, i) && (u[_n(e.schema, i).property] = Et(
|
|
9487
9500
|
n.attrs[i]
|
|
9488
9501
|
));
|
|
9489
9502
|
n.startTag;
|
|
9490
|
-
const o =
|
|
9503
|
+
const o = Et(n.startTag), l = n.endTag ? Et(n.endTag) : void 0, c = { opening: o };
|
|
9491
9504
|
l && (c.closing = l), c.properties = u, t.data = { position: c };
|
|
9492
9505
|
}
|
|
9493
9506
|
}
|
|
9494
9507
|
return r;
|
|
9495
9508
|
}
|
|
9496
|
-
function
|
|
9509
|
+
function Et(e) {
|
|
9497
9510
|
const t = Va({
|
|
9498
9511
|
line: e.startLine,
|
|
9499
9512
|
column: e.startCol,
|
|
@@ -9509,7 +9522,7 @@ function Va(e) {
|
|
|
9509
9522
|
return e.line && e.column ? e : void 0;
|
|
9510
9523
|
}
|
|
9511
9524
|
const Qa = {}.hasOwnProperty;
|
|
9512
|
-
function
|
|
9525
|
+
function bu(e, t) {
|
|
9513
9526
|
const n = t || {};
|
|
9514
9527
|
function r(a, ...u) {
|
|
9515
9528
|
let i = r.invalid;
|
|
@@ -9523,10 +9536,10 @@ function Eu(e, t) {
|
|
|
9523
9536
|
}
|
|
9524
9537
|
return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
|
|
9525
9538
|
}
|
|
9526
|
-
const lf = {}, cf = {}.hasOwnProperty,
|
|
9539
|
+
const lf = {}, cf = {}.hasOwnProperty, Eu = bu("type", { handlers: { root: ff, element: bf, text: mf, comment: gf, doctype: pf } });
|
|
9527
9540
|
function df(e, t) {
|
|
9528
9541
|
const r = (t || lf).space;
|
|
9529
|
-
return
|
|
9542
|
+
return Eu(e, r === "svg" ? et : Xt);
|
|
9530
9543
|
}
|
|
9531
9544
|
function ff(e, t) {
|
|
9532
9545
|
const n = {
|
|
@@ -9567,7 +9580,7 @@ function gf(e) {
|
|
|
9567
9580
|
};
|
|
9568
9581
|
return St(e, t), t;
|
|
9569
9582
|
}
|
|
9570
|
-
function
|
|
9583
|
+
function bf(e, t) {
|
|
9571
9584
|
const n = t;
|
|
9572
9585
|
let r = n;
|
|
9573
9586
|
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = et);
|
|
@@ -9576,7 +9589,7 @@ function Ef(e, t) {
|
|
|
9576
9589
|
if (e.properties) {
|
|
9577
9590
|
for (u in e.properties)
|
|
9578
9591
|
if (u !== "children" && cf.call(e.properties, u)) {
|
|
9579
|
-
const l =
|
|
9592
|
+
const l = Ef(
|
|
9580
9593
|
r,
|
|
9581
9594
|
u,
|
|
9582
9595
|
e.properties[u]
|
|
@@ -9595,7 +9608,7 @@ function Ef(e, t) {
|
|
|
9595
9608
|
};
|
|
9596
9609
|
return o.childNodes = Mr(e.children, o, r), St(e, o), e.tagName === "template" && e.content && (o.content = hf(e.content, r)), o;
|
|
9597
9610
|
}
|
|
9598
|
-
function
|
|
9611
|
+
function Ef(e, t, n) {
|
|
9599
9612
|
const r = _n(e, t);
|
|
9600
9613
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
|
9601
9614
|
return;
|
|
@@ -9615,7 +9628,7 @@ function Mr(e, t, n) {
|
|
|
9615
9628
|
const a = [];
|
|
9616
9629
|
if (e)
|
|
9617
9630
|
for (; ++r < e.length; ) {
|
|
9618
|
-
const u =
|
|
9631
|
+
const u = Eu(e[r], n);
|
|
9619
9632
|
u.parentNode = t, a.push(u);
|
|
9620
9633
|
}
|
|
9621
9634
|
return a;
|
|
@@ -13763,7 +13776,7 @@ class ri {
|
|
|
13763
13776
|
break;
|
|
13764
13777
|
}
|
|
13765
13778
|
case T.IN_BODY: {
|
|
13766
|
-
|
|
13779
|
+
Ee(this, t);
|
|
13767
13780
|
break;
|
|
13768
13781
|
}
|
|
13769
13782
|
case T.IN_TABLE: {
|
|
@@ -13862,7 +13875,7 @@ class ri {
|
|
|
13862
13875
|
break;
|
|
13863
13876
|
}
|
|
13864
13877
|
case T.TEXT: {
|
|
13865
|
-
|
|
13878
|
+
Ep(this, t);
|
|
13866
13879
|
break;
|
|
13867
13880
|
}
|
|
13868
13881
|
case T.IN_TABLE: {
|
|
@@ -14033,7 +14046,7 @@ function gh(e, t) {
|
|
|
14033
14046
|
let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
|
|
14034
14047
|
return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : Uu(e, t), n;
|
|
14035
14048
|
}
|
|
14036
|
-
function
|
|
14049
|
+
function bh(e, t) {
|
|
14037
14050
|
let n = null, r = e.openElements.stackTop;
|
|
14038
14051
|
for (; r >= 0; r--) {
|
|
14039
14052
|
const a = e.openElements.items[r];
|
|
@@ -14043,7 +14056,7 @@ function Eh(e, t) {
|
|
|
14043
14056
|
}
|
|
14044
14057
|
return n || (e.openElements.shortenToLength(r < 0 ? 0 : r), e.activeFormattingElements.removeEntry(t)), n;
|
|
14045
14058
|
}
|
|
14046
|
-
function
|
|
14059
|
+
function Eh(e, t, n) {
|
|
14047
14060
|
let r = t, a = e.openElements.getCommonAncestor(t);
|
|
14048
14061
|
for (let u = 0, i = a; i !== n; u++, i = a) {
|
|
14049
14062
|
a = e.openElements.getCommonAncestor(i);
|
|
@@ -14074,11 +14087,11 @@ function Br(e, t) {
|
|
|
14074
14087
|
const r = gh(e, t);
|
|
14075
14088
|
if (!r)
|
|
14076
14089
|
break;
|
|
14077
|
-
const a =
|
|
14090
|
+
const a = bh(e, r);
|
|
14078
14091
|
if (!a)
|
|
14079
14092
|
break;
|
|
14080
14093
|
e.activeFormattingElements.bookmark = r;
|
|
14081
|
-
const u =
|
|
14094
|
+
const u = Eh(e, a, r.element), i = e.openElements.getCommonAncestor(r.element);
|
|
14082
14095
|
e.treeAdapter.detachNode(u), i && yh(e, i, u), Ah(e, a, r);
|
|
14083
14096
|
}
|
|
14084
14097
|
}
|
|
@@ -14126,7 +14139,7 @@ function zt(e, t) {
|
|
|
14126
14139
|
function Sh(e, t) {
|
|
14127
14140
|
switch (t.tagID) {
|
|
14128
14141
|
case s.HTML: {
|
|
14129
|
-
|
|
14142
|
+
Ee(e, t);
|
|
14130
14143
|
break;
|
|
14131
14144
|
}
|
|
14132
14145
|
case s.HEAD: {
|
|
@@ -14147,7 +14160,7 @@ function Yt(e, t) {
|
|
|
14147
14160
|
function Pe(e, t) {
|
|
14148
14161
|
switch (t.tagID) {
|
|
14149
14162
|
case s.HTML: {
|
|
14150
|
-
|
|
14163
|
+
Ee(e, t);
|
|
14151
14164
|
break;
|
|
14152
14165
|
}
|
|
14153
14166
|
case s.BASE:
|
|
@@ -14216,7 +14229,7 @@ function jt(e, t) {
|
|
|
14216
14229
|
function Lh(e, t) {
|
|
14217
14230
|
switch (t.tagID) {
|
|
14218
14231
|
case s.HTML: {
|
|
14219
|
-
|
|
14232
|
+
Ee(e, t);
|
|
14220
14233
|
break;
|
|
14221
14234
|
}
|
|
14222
14235
|
case s.BASEFONT:
|
|
@@ -14258,7 +14271,7 @@ function Gt(e, t) {
|
|
|
14258
14271
|
function wh(e, t) {
|
|
14259
14272
|
switch (t.tagID) {
|
|
14260
14273
|
case s.HTML: {
|
|
14261
|
-
|
|
14274
|
+
Ee(e, t);
|
|
14262
14275
|
break;
|
|
14263
14276
|
}
|
|
14264
14277
|
case s.BODY: {
|
|
@@ -14324,7 +14337,7 @@ function Rn(e, t) {
|
|
|
14324
14337
|
break;
|
|
14325
14338
|
}
|
|
14326
14339
|
case X.START_TAG: {
|
|
14327
|
-
|
|
14340
|
+
Ee(e, t);
|
|
14328
14341
|
break;
|
|
14329
14342
|
}
|
|
14330
14343
|
case X.END_TAG: {
|
|
@@ -14455,7 +14468,7 @@ function sp(e, t) {
|
|
|
14455
14468
|
function ii(e, t) {
|
|
14456
14469
|
e._reconstructActiveFormattingElements(), e._insertElement(t, L.HTML);
|
|
14457
14470
|
}
|
|
14458
|
-
function
|
|
14471
|
+
function Ee(e, t) {
|
|
14459
14472
|
switch (t.tagID) {
|
|
14460
14473
|
case s.I:
|
|
14461
14474
|
case s.S:
|
|
@@ -14697,7 +14710,7 @@ function gp(e, t) {
|
|
|
14697
14710
|
const n = t.tagID;
|
|
14698
14711
|
e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
|
|
14699
14712
|
}
|
|
14700
|
-
function
|
|
14713
|
+
function bp(e) {
|
|
14701
14714
|
e._reconstructActiveFormattingElements(), e._insertFakeElement(k.BR, s.BR), e.openElements.pop(), e.framesetOk = !1;
|
|
14702
14715
|
}
|
|
14703
14716
|
function Uu(e, t) {
|
|
@@ -14783,7 +14796,7 @@ function Ln(e, t) {
|
|
|
14783
14796
|
break;
|
|
14784
14797
|
}
|
|
14785
14798
|
case s.BR: {
|
|
14786
|
-
|
|
14799
|
+
bp(e);
|
|
14787
14800
|
break;
|
|
14788
14801
|
}
|
|
14789
14802
|
case s.BODY: {
|
|
@@ -14815,7 +14828,7 @@ function Ln(e, t) {
|
|
|
14815
14828
|
function zu(e, t) {
|
|
14816
14829
|
e.tmplInsertionModeStack.length > 0 ? Vu(e, t) : vr(e, t);
|
|
14817
14830
|
}
|
|
14818
|
-
function
|
|
14831
|
+
function Ep(e, t) {
|
|
14819
14832
|
var n;
|
|
14820
14833
|
t.tagID === s.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
|
14821
14834
|
}
|
|
@@ -14958,7 +14971,7 @@ function Ft(e, t) {
|
|
|
14958
14971
|
const Gu = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
|
|
14959
14972
|
function Np(e, t) {
|
|
14960
14973
|
const n = t.tagID;
|
|
14961
|
-
Gu.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, Ct(e, t)) :
|
|
14974
|
+
Gu.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, Ct(e, t)) : Ee(e, t);
|
|
14962
14975
|
}
|
|
14963
14976
|
function Rp(e, t) {
|
|
14964
14977
|
const n = t.tagID;
|
|
@@ -14986,7 +14999,7 @@ function Rp(e, t) {
|
|
|
14986
14999
|
function Hr(e, t) {
|
|
14987
15000
|
switch (t.tagID) {
|
|
14988
15001
|
case s.HTML: {
|
|
14989
|
-
|
|
15002
|
+
Ee(e, t);
|
|
14990
15003
|
break;
|
|
14991
15004
|
}
|
|
14992
15005
|
case s.COL: {
|
|
@@ -15121,7 +15134,7 @@ function qu(e, t) {
|
|
|
15121
15134
|
}
|
|
15122
15135
|
function Op(e, t) {
|
|
15123
15136
|
const n = t.tagID;
|
|
15124
|
-
Gu.has(n) ? (e.openElements.hasInTableScope(s.TD) || e.openElements.hasInTableScope(s.TH)) && (e._closeTableCell(), wn(e, t)) :
|
|
15137
|
+
Gu.has(n) ? (e.openElements.hasInTableScope(s.TD) || e.openElements.hasInTableScope(s.TH)) && (e._closeTableCell(), wn(e, t)) : Ee(e, t);
|
|
15125
15138
|
}
|
|
15126
15139
|
function wp(e, t) {
|
|
15127
15140
|
const n = t.tagID;
|
|
@@ -15152,7 +15165,7 @@ function wp(e, t) {
|
|
|
15152
15165
|
function $u(e, t) {
|
|
15153
15166
|
switch (t.tagID) {
|
|
15154
15167
|
case s.HTML: {
|
|
15155
|
-
|
|
15168
|
+
Ee(e, t);
|
|
15156
15169
|
break;
|
|
15157
15170
|
}
|
|
15158
15171
|
case s.OPTION: {
|
|
@@ -15242,7 +15255,7 @@ function Mp(e, t) {
|
|
|
15242
15255
|
break;
|
|
15243
15256
|
}
|
|
15244
15257
|
default:
|
|
15245
|
-
e.tmplInsertionModeStack[0] = T.IN_BODY, e.insertionMode = T.IN_BODY,
|
|
15258
|
+
e.tmplInsertionModeStack[0] = T.IN_BODY, e.insertionMode = T.IN_BODY, Ee(e, t);
|
|
15246
15259
|
}
|
|
15247
15260
|
}
|
|
15248
15261
|
function Fp(e, t) {
|
|
@@ -15252,7 +15265,7 @@ function Vu(e, t) {
|
|
|
15252
15265
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : vr(e, t);
|
|
15253
15266
|
}
|
|
15254
15267
|
function Bp(e, t) {
|
|
15255
|
-
t.tagID === s.HTML ?
|
|
15268
|
+
t.tagID === s.HTML ? Ee(e, t) : yn(e, t);
|
|
15256
15269
|
}
|
|
15257
15270
|
function Qu(e, t) {
|
|
15258
15271
|
var n;
|
|
@@ -15271,7 +15284,7 @@ function yn(e, t) {
|
|
|
15271
15284
|
function vp(e, t) {
|
|
15272
15285
|
switch (t.tagID) {
|
|
15273
15286
|
case s.HTML: {
|
|
15274
|
-
|
|
15287
|
+
Ee(e, t);
|
|
15275
15288
|
break;
|
|
15276
15289
|
}
|
|
15277
15290
|
case s.FRAMESET: {
|
|
@@ -15294,7 +15307,7 @@ function Hp(e, t) {
|
|
|
15294
15307
|
function Up(e, t) {
|
|
15295
15308
|
switch (t.tagID) {
|
|
15296
15309
|
case s.HTML: {
|
|
15297
|
-
|
|
15310
|
+
Ee(e, t);
|
|
15298
15311
|
break;
|
|
15299
15312
|
}
|
|
15300
15313
|
case s.NOFRAMES: {
|
|
@@ -15307,7 +15320,7 @@ function zp(e, t) {
|
|
|
15307
15320
|
t.tagID === s.HTML && (e.insertionMode = T.AFTER_AFTER_FRAMESET);
|
|
15308
15321
|
}
|
|
15309
15322
|
function Yp(e, t) {
|
|
15310
|
-
t.tagID === s.HTML ?
|
|
15323
|
+
t.tagID === s.HTML ? Ee(e, t) : fn(e, t);
|
|
15311
15324
|
}
|
|
15312
15325
|
function fn(e, t) {
|
|
15313
15326
|
e.insertionMode = T.IN_BODY, Rn(e, t);
|
|
@@ -15315,7 +15328,7 @@ function fn(e, t) {
|
|
|
15315
15328
|
function jp(e, t) {
|
|
15316
15329
|
switch (t.tagID) {
|
|
15317
15330
|
case s.HTML: {
|
|
15318
|
-
|
|
15331
|
+
Ee(e, t);
|
|
15319
15332
|
break;
|
|
15320
15333
|
}
|
|
15321
15334
|
case s.NOFRAMES: {
|
|
@@ -15369,7 +15382,7 @@ const Vp = /* @__PURE__ */ new Set([
|
|
|
15369
15382
|
"mdxjsEsm"
|
|
15370
15383
|
]), ui = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
|
|
15371
15384
|
function Ku(e, t) {
|
|
15372
|
-
const n = am(e), r =
|
|
15385
|
+
const n = am(e), r = bu("type", {
|
|
15373
15386
|
handlers: { root: Qp, element: Xp, text: Kp, comment: Ju, doctype: Zp, raw: em },
|
|
15374
15387
|
unknown: tm
|
|
15375
15388
|
}), a = {
|
|
@@ -15579,27 +15592,27 @@ function sm(e, t, n) {
|
|
|
15579
15592
|
for (; ++i < u.length; )
|
|
15580
15593
|
du(e, "text", o);
|
|
15581
15594
|
function o(c, f) {
|
|
15582
|
-
let d = -1,
|
|
15595
|
+
let d = -1, b;
|
|
15583
15596
|
for (; ++d < f.length; ) {
|
|
15584
|
-
const m = f[d], h =
|
|
15597
|
+
const m = f[d], h = b ? b.children : void 0;
|
|
15585
15598
|
if (a(
|
|
15586
15599
|
m,
|
|
15587
15600
|
h ? h.indexOf(m) : void 0,
|
|
15588
|
-
|
|
15601
|
+
b
|
|
15589
15602
|
))
|
|
15590
15603
|
return;
|
|
15591
|
-
|
|
15604
|
+
b = m;
|
|
15592
15605
|
}
|
|
15593
|
-
if (
|
|
15606
|
+
if (b)
|
|
15594
15607
|
return l(c, f);
|
|
15595
15608
|
}
|
|
15596
15609
|
function l(c, f) {
|
|
15597
|
-
const d = f[f.length - 1],
|
|
15610
|
+
const d = f[f.length - 1], b = u[i][0], m = u[i][1];
|
|
15598
15611
|
let h = 0;
|
|
15599
15612
|
const y = d.children.indexOf(c);
|
|
15600
15613
|
let _ = !1, x = [];
|
|
15601
|
-
|
|
15602
|
-
let I =
|
|
15614
|
+
b.lastIndex = 0;
|
|
15615
|
+
let I = b.exec(c.value);
|
|
15603
15616
|
for (; I; ) {
|
|
15604
15617
|
const M = I.index, B = {
|
|
15605
15618
|
index: I.index,
|
|
@@ -15607,12 +15620,12 @@ function sm(e, t, n) {
|
|
|
15607
15620
|
stack: [...f, c]
|
|
15608
15621
|
};
|
|
15609
15622
|
let R = m(...I, B);
|
|
15610
|
-
if (typeof R == "string" && (R = R.length > 0 ? { type: "text", value: R } : void 0), R === !1 ?
|
|
15623
|
+
if (typeof R == "string" && (R = R.length > 0 ? { type: "text", value: R } : void 0), R === !1 ? b.lastIndex = M + 1 : (h !== M && x.push({
|
|
15611
15624
|
type: "text",
|
|
15612
15625
|
value: c.value.slice(h, M)
|
|
15613
|
-
}), Array.isArray(R) ? x.push(...R) : R && x.push(R), h = M + I[0].length, _ = !0), !
|
|
15626
|
+
}), Array.isArray(R) ? x.push(...R) : R && x.push(R), h = M + I[0].length, _ = !0), !b.global)
|
|
15614
15627
|
break;
|
|
15615
|
-
I =
|
|
15628
|
+
I = b.exec(c.value);
|
|
15616
15629
|
}
|
|
15617
15630
|
return _ ? (h < c.value.length && x.push({ type: "text", value: c.value.slice(h) }), d.children.splice(y, 1, ...x)) : x = [c], y + x.length;
|
|
15618
15631
|
}
|
|
@@ -15640,7 +15653,7 @@ function cm(e) {
|
|
|
15640
15653
|
const Kn = "phrasing", Zn = ["autolink", "link", "image", "label"];
|
|
15641
15654
|
function dm() {
|
|
15642
15655
|
return {
|
|
15643
|
-
transforms: [
|
|
15656
|
+
transforms: [Em],
|
|
15644
15657
|
enter: {
|
|
15645
15658
|
literalAutolink: hm,
|
|
15646
15659
|
literalAutolinkEmail: Jn,
|
|
@@ -15648,7 +15661,7 @@ function dm() {
|
|
|
15648
15661
|
literalAutolinkWww: Jn
|
|
15649
15662
|
},
|
|
15650
15663
|
exit: {
|
|
15651
|
-
literalAutolink:
|
|
15664
|
+
literalAutolink: bm,
|
|
15652
15665
|
literalAutolinkEmail: gm,
|
|
15653
15666
|
literalAutolinkHttp: pm,
|
|
15654
15667
|
literalAutolinkWww: mm
|
|
@@ -15699,10 +15712,10 @@ function mm(e) {
|
|
|
15699
15712
|
function gm(e) {
|
|
15700
15713
|
this.config.exit.autolinkEmail.call(this, e);
|
|
15701
15714
|
}
|
|
15702
|
-
function
|
|
15715
|
+
function bm(e) {
|
|
15703
15716
|
this.exit(e);
|
|
15704
15717
|
}
|
|
15705
|
-
function
|
|
15718
|
+
function Em(e) {
|
|
15706
15719
|
sm(
|
|
15707
15720
|
e,
|
|
15708
15721
|
[
|
|
@@ -15899,17 +15912,17 @@ function Ym(e, t = {}) {
|
|
|
15899
15912
|
const n = (t.align || []).concat(), r = t.stringLength || Gm, a = [], u = [], i = [], o = [];
|
|
15900
15913
|
let l = 0, c = -1;
|
|
15901
15914
|
for (; ++c < e.length; ) {
|
|
15902
|
-
const h = [],
|
|
15915
|
+
const h = [], E = [];
|
|
15903
15916
|
let y = -1;
|
|
15904
15917
|
for (e[c].length > l && (l = e[c].length); ++y < e[c].length; ) {
|
|
15905
15918
|
const _ = jm(e[c][y]);
|
|
15906
15919
|
if (t.alignDelimiters !== !1) {
|
|
15907
15920
|
const x = r(_);
|
|
15908
|
-
|
|
15921
|
+
E[y] = x, (o[y] === void 0 || x > o[y]) && (o[y] = x);
|
|
15909
15922
|
}
|
|
15910
15923
|
h.push(_);
|
|
15911
15924
|
}
|
|
15912
|
-
u[c] = h, i[c] =
|
|
15925
|
+
u[c] = h, i[c] = E;
|
|
15913
15926
|
}
|
|
15914
15927
|
let f = -1;
|
|
15915
15928
|
if (typeof n == "object" && "length" in n)
|
|
@@ -15921,29 +15934,29 @@ function Ym(e, t = {}) {
|
|
|
15921
15934
|
a[f] = h;
|
|
15922
15935
|
}
|
|
15923
15936
|
f = -1;
|
|
15924
|
-
const d = [],
|
|
15937
|
+
const d = [], b = [];
|
|
15925
15938
|
for (; ++f < l; ) {
|
|
15926
15939
|
const h = a[f];
|
|
15927
|
-
let
|
|
15928
|
-
h === 99 ? (
|
|
15940
|
+
let E = "", y = "";
|
|
15941
|
+
h === 99 ? (E = ":", y = ":") : h === 108 ? E = ":" : h === 114 && (y = ":");
|
|
15929
15942
|
let _ = t.alignDelimiters === !1 ? 1 : Math.max(
|
|
15930
15943
|
1,
|
|
15931
|
-
o[f] -
|
|
15944
|
+
o[f] - E.length - y.length
|
|
15932
15945
|
);
|
|
15933
|
-
const x =
|
|
15934
|
-
t.alignDelimiters !== !1 && (_ =
|
|
15946
|
+
const x = E + "-".repeat(_) + y;
|
|
15947
|
+
t.alignDelimiters !== !1 && (_ = E.length + _ + y.length, _ > o[f] && (o[f] = _), b[f] = _), d[f] = x;
|
|
15935
15948
|
}
|
|
15936
|
-
u.splice(1, 0, d), i.splice(1, 0,
|
|
15949
|
+
u.splice(1, 0, d), i.splice(1, 0, b), c = -1;
|
|
15937
15950
|
const m = [];
|
|
15938
15951
|
for (; ++c < u.length; ) {
|
|
15939
|
-
const h = u[c],
|
|
15952
|
+
const h = u[c], E = i[c];
|
|
15940
15953
|
f = -1;
|
|
15941
15954
|
const y = [];
|
|
15942
15955
|
for (; ++f < l; ) {
|
|
15943
15956
|
const _ = h[f] || "";
|
|
15944
15957
|
let x = "", I = "";
|
|
15945
15958
|
if (t.alignDelimiters !== !1) {
|
|
15946
|
-
const M = o[f] - (
|
|
15959
|
+
const M = o[f] - (E[f] || 0), B = a[f];
|
|
15947
15960
|
B === 114 ? x = " ".repeat(M) : B === 99 ? M % 2 ? (x = " ".repeat(M / 2 + 0.5), I = " ".repeat(M / 2 - 0.5)) : (x = " ".repeat(M / 2), I = x) : I = " ".repeat(M);
|
|
15948
15961
|
}
|
|
15949
15962
|
t.delimiterStart !== !1 && !f && y.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
@@ -16026,8 +16039,8 @@ function Xm(e) {
|
|
|
16026
16039
|
function Km(e, t, n, r) {
|
|
16027
16040
|
const a = Xm(n), u = e.value || "", i = a === "`" ? "GraveAccent" : "Tilde";
|
|
16028
16041
|
if (Qm(e, n)) {
|
|
16029
|
-
const d = n.enter("codeIndented"),
|
|
16030
|
-
return d(),
|
|
16042
|
+
const d = n.enter("codeIndented"), b = n.indentLines(u, Zm);
|
|
16043
|
+
return d(), b;
|
|
16031
16044
|
}
|
|
16032
16045
|
const o = n.createTracker(r), l = a.repeat(Math.max(Vm(u, a) + 1, 3)), c = n.enter("codeFenced");
|
|
16033
16046
|
let f = o.move(l);
|
|
@@ -16132,19 +16145,19 @@ function ng(e, t) {
|
|
|
16132
16145
|
function rg(e, t, n, r) {
|
|
16133
16146
|
const a = Math.max(Math.min(6, e.depth || 1), 1), u = n.createTracker(r);
|
|
16134
16147
|
if (ng(e, n)) {
|
|
16135
|
-
const f = n.enter("headingSetext"), d = n.enter("phrasing"),
|
|
16148
|
+
const f = n.enter("headingSetext"), d = n.enter("phrasing"), b = n.containerPhrasing(e, {
|
|
16136
16149
|
...u.current(),
|
|
16137
16150
|
before: `
|
|
16138
16151
|
`,
|
|
16139
16152
|
after: `
|
|
16140
16153
|
`
|
|
16141
16154
|
});
|
|
16142
|
-
return d(), f(),
|
|
16155
|
+
return d(), f(), b + `
|
|
16143
16156
|
` + (a === 1 ? "=" : "-").repeat(
|
|
16144
16157
|
// The whole size…
|
|
16145
|
-
|
|
16158
|
+
b.length - // Minus the position of the character after the last EOL (or
|
|
16146
16159
|
// 0 if there is none)…
|
|
16147
|
-
(Math.max(
|
|
16160
|
+
(Math.max(b.lastIndexOf("\r"), b.lastIndexOf(`
|
|
16148
16161
|
`)) + 1)
|
|
16149
16162
|
);
|
|
16150
16163
|
}
|
|
@@ -16371,8 +16384,8 @@ function fg(e, t, n, r) {
|
|
|
16371
16384
|
) {
|
|
16372
16385
|
let d = -1;
|
|
16373
16386
|
for (; ++d < e.children.length; ) {
|
|
16374
|
-
const
|
|
16375
|
-
if (
|
|
16387
|
+
const b = e.children[d];
|
|
16388
|
+
if (b && b.type === "listItem" && b.children && b.children[0] && b.children[0].type === "thematicBreak") {
|
|
16376
16389
|
l = !0;
|
|
16377
16390
|
break;
|
|
16378
16391
|
}
|
|
@@ -16404,8 +16417,8 @@ function pg(e, t, n, r) {
|
|
|
16404
16417
|
f
|
|
16405
16418
|
);
|
|
16406
16419
|
return l(), c;
|
|
16407
|
-
function f(d,
|
|
16408
|
-
return
|
|
16420
|
+
function f(d, b, m) {
|
|
16421
|
+
return b ? (m ? "" : " ".repeat(i)) + d : (m ? u : u + " ".repeat(i - u.length)) + d;
|
|
16409
16422
|
}
|
|
16410
16423
|
}
|
|
16411
16424
|
function mg(e, t, n, r) {
|
|
@@ -16438,12 +16451,12 @@ const gg = (
|
|
|
16438
16451
|
"textDirective"
|
|
16439
16452
|
])
|
|
16440
16453
|
);
|
|
16441
|
-
function
|
|
16454
|
+
function bg(e, t, n, r) {
|
|
16442
16455
|
return (e.children.some(function(i) {
|
|
16443
16456
|
return gg(i);
|
|
16444
16457
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
16445
16458
|
}
|
|
16446
|
-
function
|
|
16459
|
+
function Eg(e) {
|
|
16447
16460
|
const t = e.options.strong || "*";
|
|
16448
16461
|
if (t !== "*" && t !== "_")
|
|
16449
16462
|
throw new Error(
|
|
@@ -16453,7 +16466,7 @@ function bg(e) {
|
|
|
16453
16466
|
}
|
|
16454
16467
|
hs.peek = Tg;
|
|
16455
16468
|
function hs(e, t, n, r) {
|
|
16456
|
-
const a =
|
|
16469
|
+
const a = Eg(n), u = n.enter("strong"), i = n.createTracker(r);
|
|
16457
16470
|
let o = i.move(a + a);
|
|
16458
16471
|
return o += i.move(
|
|
16459
16472
|
n.containerPhrasing(e, {
|
|
@@ -16498,7 +16511,7 @@ const ps = {
|
|
|
16498
16511
|
list: fg,
|
|
16499
16512
|
listItem: pg,
|
|
16500
16513
|
paragraph: mg,
|
|
16501
|
-
root:
|
|
16514
|
+
root: bg,
|
|
16502
16515
|
strong: hs,
|
|
16503
16516
|
text: yg,
|
|
16504
16517
|
thematicBreak: _g
|
|
@@ -16577,22 +16590,22 @@ function Rg(e) {
|
|
|
16577
16590
|
{ atBreak: !0, character: "-", after: "[:|-]" }
|
|
16578
16591
|
],
|
|
16579
16592
|
handlers: {
|
|
16580
|
-
inlineCode:
|
|
16593
|
+
inlineCode: b,
|
|
16581
16594
|
table: i,
|
|
16582
16595
|
tableCell: l,
|
|
16583
16596
|
tableRow: o
|
|
16584
16597
|
}
|
|
16585
16598
|
};
|
|
16586
|
-
function i(m, h,
|
|
16587
|
-
return c(f(m,
|
|
16599
|
+
function i(m, h, E, y) {
|
|
16600
|
+
return c(f(m, E, y), m.align);
|
|
16588
16601
|
}
|
|
16589
|
-
function o(m, h,
|
|
16590
|
-
const _ = d(m,
|
|
16602
|
+
function o(m, h, E, y) {
|
|
16603
|
+
const _ = d(m, E, y), x = c([_]);
|
|
16591
16604
|
return x.slice(0, x.indexOf(`
|
|
16592
16605
|
`));
|
|
16593
16606
|
}
|
|
16594
|
-
function l(m, h,
|
|
16595
|
-
const _ =
|
|
16607
|
+
function l(m, h, E, y) {
|
|
16608
|
+
const _ = E.enter("tableCell"), x = E.enter("phrasing"), I = E.containerPhrasing(m, {
|
|
16596
16609
|
...y,
|
|
16597
16610
|
before: u,
|
|
16598
16611
|
after: u
|
|
@@ -16610,25 +16623,25 @@ function Rg(e) {
|
|
|
16610
16623
|
stringLength: a
|
|
16611
16624
|
});
|
|
16612
16625
|
}
|
|
16613
|
-
function f(m, h,
|
|
16626
|
+
function f(m, h, E) {
|
|
16614
16627
|
const y = m.children;
|
|
16615
16628
|
let _ = -1;
|
|
16616
16629
|
const x = [], I = h.enter("table");
|
|
16617
16630
|
for (; ++_ < y.length; )
|
|
16618
|
-
x[_] = d(y[_], h,
|
|
16631
|
+
x[_] = d(y[_], h, E);
|
|
16619
16632
|
return I(), x;
|
|
16620
16633
|
}
|
|
16621
|
-
function d(m, h,
|
|
16634
|
+
function d(m, h, E) {
|
|
16622
16635
|
const y = m.children;
|
|
16623
16636
|
let _ = -1;
|
|
16624
16637
|
const x = [], I = h.enter("tableRow");
|
|
16625
16638
|
for (; ++_ < y.length; )
|
|
16626
|
-
x[_] = l(y[_], m, h,
|
|
16639
|
+
x[_] = l(y[_], m, h, E);
|
|
16627
16640
|
return I(), x;
|
|
16628
16641
|
}
|
|
16629
|
-
function
|
|
16630
|
-
let y = ps.inlineCode(m, h,
|
|
16631
|
-
return
|
|
16642
|
+
function b(m, h, E) {
|
|
16643
|
+
let y = ps.inlineCode(m, h, E);
|
|
16644
|
+
return E.stack.includes("tableCell") && (y = y.replace(/\|/g, "\\$&")), y;
|
|
16632
16645
|
}
|
|
16633
16646
|
}
|
|
16634
16647
|
function Lg() {
|
|
@@ -16712,13 +16725,13 @@ const Fg = {
|
|
|
16712
16725
|
}, gs = {
|
|
16713
16726
|
tokenize: Gg,
|
|
16714
16727
|
partial: !0
|
|
16715
|
-
},
|
|
16728
|
+
}, bs = {
|
|
16716
16729
|
tokenize: qg,
|
|
16717
16730
|
partial: !0
|
|
16718
16731
|
}, Bg = {
|
|
16719
16732
|
tokenize: $g,
|
|
16720
16733
|
partial: !0
|
|
16721
|
-
},
|
|
16734
|
+
}, Es = {
|
|
16722
16735
|
tokenize: Ug,
|
|
16723
16736
|
previous: ys
|
|
16724
16737
|
}, Ts = {
|
|
@@ -16742,17 +16755,17 @@ je[46] = We;
|
|
|
16742
16755
|
je[95] = We;
|
|
16743
16756
|
je[72] = [We, Ts];
|
|
16744
16757
|
je[104] = [We, Ts];
|
|
16745
|
-
je[87] = [We,
|
|
16746
|
-
je[119] = [We,
|
|
16758
|
+
je[87] = [We, Es];
|
|
16759
|
+
je[119] = [We, Es];
|
|
16747
16760
|
function Hg(e, t, n) {
|
|
16748
16761
|
const r = this;
|
|
16749
16762
|
let a, u;
|
|
16750
16763
|
return i;
|
|
16751
16764
|
function i(d) {
|
|
16752
|
-
return !
|
|
16765
|
+
return !br(d) || !_s.call(r, r.previous) || Yr(r.events) ? n(d) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(d));
|
|
16753
16766
|
}
|
|
16754
16767
|
function o(d) {
|
|
16755
|
-
return
|
|
16768
|
+
return br(d) ? (e.consume(d), o) : d === 64 ? (e.consume(d), l) : n(d);
|
|
16756
16769
|
}
|
|
16757
16770
|
function l(d) {
|
|
16758
16771
|
return d === 46 ? e.check(
|
|
@@ -16793,8 +16806,8 @@ function zg(e, t, n) {
|
|
|
16793
16806
|
if (ye(d) && a.length < 5)
|
|
16794
16807
|
return a += String.fromCodePoint(d), e.consume(d), o;
|
|
16795
16808
|
if (d === 58) {
|
|
16796
|
-
const
|
|
16797
|
-
if (
|
|
16809
|
+
const b = a.toLowerCase();
|
|
16810
|
+
if (b === "http" || b === "https")
|
|
16798
16811
|
return e.consume(d), l;
|
|
16799
16812
|
}
|
|
16800
16813
|
return n(d);
|
|
@@ -16823,7 +16836,7 @@ function jg(e, t, n) {
|
|
|
16823
16836
|
let r, a, u;
|
|
16824
16837
|
return i;
|
|
16825
16838
|
function i(c) {
|
|
16826
|
-
return c === 46 || c === 95 ? e.check(
|
|
16839
|
+
return c === 46 || c === 95 ? e.check(bs, l, o)(c) : c === null || ie(c) || lt(c) || c !== 45 && xn(c) ? l(c) : (u = !0, e.consume(c), i);
|
|
16827
16840
|
}
|
|
16828
16841
|
function o(c) {
|
|
16829
16842
|
return c === 95 ? r = !0 : (a = r, r = void 0), e.consume(c), i;
|
|
@@ -16836,7 +16849,7 @@ function Gg(e, t) {
|
|
|
16836
16849
|
let n = 0, r = 0;
|
|
16837
16850
|
return a;
|
|
16838
16851
|
function a(i) {
|
|
16839
|
-
return i === 40 ? (n++, e.consume(i), a) : i === 41 && r < n ? u(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? e.check(
|
|
16852
|
+
return i === 40 ? (n++, e.consume(i), a) : i === 41 && r < n ? u(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? e.check(bs, t, u)(i) : i === null || ie(i) || lt(i) ? t(i) : (e.consume(i), a);
|
|
16840
16853
|
}
|
|
16841
16854
|
function u(i) {
|
|
16842
16855
|
return i === 41 && r++, e.consume(i), a;
|
|
@@ -16877,9 +16890,9 @@ function As(e) {
|
|
|
16877
16890
|
return !ye(e);
|
|
16878
16891
|
}
|
|
16879
16892
|
function _s(e) {
|
|
16880
|
-
return !(e === 47 ||
|
|
16893
|
+
return !(e === 47 || br(e));
|
|
16881
16894
|
}
|
|
16882
|
-
function
|
|
16895
|
+
function br(e) {
|
|
16883
16896
|
return e === 43 || e === 45 || e === 46 || e === 95 || ge(e);
|
|
16884
16897
|
}
|
|
16885
16898
|
function Yr(e) {
|
|
@@ -17022,8 +17035,8 @@ function Kg(e, t, n) {
|
|
|
17022
17035
|
return n(d);
|
|
17023
17036
|
if (d === 93) {
|
|
17024
17037
|
e.exit("chunkString");
|
|
17025
|
-
const
|
|
17026
|
-
return a.includes(De(r.sliceSerialize(
|
|
17038
|
+
const b = e.exit("gfmFootnoteCallString");
|
|
17039
|
+
return a.includes(De(r.sliceSerialize(b))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(d), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(d);
|
|
17027
17040
|
}
|
|
17028
17041
|
return ie(d) || (i = !0), u++, e.consume(d), d === 92 ? f : c;
|
|
17029
17042
|
}
|
|
@@ -17052,15 +17065,15 @@ function Zg(e, t, n) {
|
|
|
17052
17065
|
return n(h);
|
|
17053
17066
|
if (h === 93) {
|
|
17054
17067
|
e.exit("chunkString");
|
|
17055
|
-
const
|
|
17056
|
-
return u = De(r.sliceSerialize(
|
|
17068
|
+
const E = e.exit("gfmFootnoteDefinitionLabelString");
|
|
17069
|
+
return u = De(r.sliceSerialize(E)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(h), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), b;
|
|
17057
17070
|
}
|
|
17058
17071
|
return ie(h) || (o = !0), i++, e.consume(h), h === 92 ? d : f;
|
|
17059
17072
|
}
|
|
17060
17073
|
function d(h) {
|
|
17061
17074
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), i++, f) : f(h);
|
|
17062
17075
|
}
|
|
17063
|
-
function
|
|
17076
|
+
function b(h) {
|
|
17064
17077
|
return h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), a.includes(u) || a.push(u), J(
|
|
17065
17078
|
e,
|
|
17066
17079
|
m,
|
|
@@ -17124,23 +17137,23 @@ function n1(e) {
|
|
|
17124
17137
|
type: "strikethroughText",
|
|
17125
17138
|
start: Object.assign({}, i[c][1].end),
|
|
17126
17139
|
end: Object.assign({}, i[l][1].start)
|
|
17127
|
-
},
|
|
17140
|
+
}, b = [
|
|
17128
17141
|
["enter", f, o],
|
|
17129
17142
|
["enter", i[c][1], o],
|
|
17130
17143
|
["exit", i[c][1], o],
|
|
17131
17144
|
["enter", d, o]
|
|
17132
17145
|
], m = o.parser.constructs.insideSpan.null;
|
|
17133
17146
|
m && Ne(
|
|
17134
|
-
|
|
17135
|
-
|
|
17147
|
+
b,
|
|
17148
|
+
b.length,
|
|
17136
17149
|
0,
|
|
17137
17150
|
kn(m, i.slice(c + 1, l), o)
|
|
17138
|
-
), Ne(
|
|
17151
|
+
), Ne(b, b.length, 0, [
|
|
17139
17152
|
["exit", d, o],
|
|
17140
17153
|
["enter", i[l][1], o],
|
|
17141
17154
|
["exit", i[l][1], o],
|
|
17142
17155
|
["exit", f, o]
|
|
17143
|
-
]), Ne(i, c - 1, l - c + 3,
|
|
17156
|
+
]), Ne(i, c - 1, l - c + 3, b), l = c + b.length - 2;
|
|
17144
17157
|
break;
|
|
17145
17158
|
}
|
|
17146
17159
|
}
|
|
@@ -17151,17 +17164,17 @@ function n1(e) {
|
|
|
17151
17164
|
function u(i, o, l) {
|
|
17152
17165
|
const c = this.previous, f = this.events;
|
|
17153
17166
|
let d = 0;
|
|
17154
|
-
return
|
|
17155
|
-
function
|
|
17167
|
+
return b;
|
|
17168
|
+
function b(h) {
|
|
17156
17169
|
return c === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(h) : (i.enter("strikethroughSequenceTemporary"), m(h));
|
|
17157
17170
|
}
|
|
17158
17171
|
function m(h) {
|
|
17159
|
-
const
|
|
17172
|
+
const E = gn(c);
|
|
17160
17173
|
if (h === 126)
|
|
17161
17174
|
return d > 1 ? l(h) : (i.consume(h), d++, m);
|
|
17162
17175
|
if (d < 2 && !n) return l(h);
|
|
17163
17176
|
const y = i.exit("strikethroughSequenceTemporary"), _ = gn(h);
|
|
17164
|
-
return y._open = !_ || _ === 2 && !!
|
|
17177
|
+
return y._open = !_ || _ === 2 && !!E, y._close = !E || E === 2 && !!_, o(h);
|
|
17165
17178
|
}
|
|
17166
17179
|
}
|
|
17167
17180
|
}
|
|
@@ -17291,9 +17304,9 @@ function s1(e, t, n) {
|
|
|
17291
17304
|
return S === null ? n(S) : z(S) ? u > 1 ? (u = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), m) : n(S) : K(S) ? J(e, f, "whitespace")(S) : (u += 1, i && (i = !1, a += 1), S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), i = !0, f) : (e.enter("data"), d(S)));
|
|
17292
17305
|
}
|
|
17293
17306
|
function d(S) {
|
|
17294
|
-
return S === null || S === 124 || ie(S) ? (e.exit("data"), f(S)) : (e.consume(S), S === 92 ?
|
|
17307
|
+
return S === null || S === 124 || ie(S) ? (e.exit("data"), f(S)) : (e.consume(S), S === 92 ? b : d);
|
|
17295
17308
|
}
|
|
17296
|
-
function
|
|
17309
|
+
function b(S) {
|
|
17297
17310
|
return S === 92 || S === 124 ? (e.consume(S), d) : d(S);
|
|
17298
17311
|
}
|
|
17299
17312
|
function m(S) {
|
|
@@ -17305,9 +17318,9 @@ function s1(e, t, n) {
|
|
|
17305
17318
|
)(S) : h(S));
|
|
17306
17319
|
}
|
|
17307
17320
|
function h(S) {
|
|
17308
|
-
return S === 45 || S === 58 ? y(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"),
|
|
17321
|
+
return S === 45 || S === 58 ? y(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), E) : B(S);
|
|
17309
17322
|
}
|
|
17310
|
-
function
|
|
17323
|
+
function E(S) {
|
|
17311
17324
|
return K(S) ? J(e, y, "whitespace")(S) : y(S);
|
|
17312
17325
|
}
|
|
17313
17326
|
function y(S) {
|
|
@@ -17343,43 +17356,43 @@ function s1(e, t, n) {
|
|
|
17343
17356
|
}
|
|
17344
17357
|
function o1(e, t) {
|
|
17345
17358
|
let n = -1, r = !0, a = 0, u = [0, 0, 0, 0], i = [0, 0, 0, 0], o = !1, l = 0, c, f, d;
|
|
17346
|
-
const
|
|
17359
|
+
const b = new r1();
|
|
17347
17360
|
for (; ++n < e.length; ) {
|
|
17348
17361
|
const m = e[n], h = m[1];
|
|
17349
|
-
m[0] === "enter" ? h.type === "tableHead" ? (o = !1, l !== 0 && (hi(
|
|
17362
|
+
m[0] === "enter" ? h.type === "tableHead" ? (o = !1, l !== 0 && (hi(b, t, l, c, f), f = void 0, l = 0), c = {
|
|
17350
17363
|
type: "table",
|
|
17351
17364
|
start: Object.assign({}, h.start),
|
|
17352
17365
|
// Note: correct end is set later.
|
|
17353
17366
|
end: Object.assign({}, h.end)
|
|
17354
|
-
},
|
|
17367
|
+
}, b.add(n, 0, [["enter", c, t]])) : h.type === "tableRow" || h.type === "tableDelimiterRow" ? (r = !0, d = void 0, u = [0, 0, 0, 0], i = [0, n + 1, 0, 0], o && (o = !1, f = {
|
|
17355
17368
|
type: "tableBody",
|
|
17356
17369
|
start: Object.assign({}, h.start),
|
|
17357
17370
|
// Note: correct end is set later.
|
|
17358
17371
|
end: Object.assign({}, h.end)
|
|
17359
|
-
},
|
|
17360
|
-
|
|
17372
|
+
}, b.add(n, 0, [["enter", f, t]])), a = h.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : a && (h.type === "data" || h.type === "tableDelimiterMarker" || h.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (u[1] !== 0 && (i[0] = i[1], d = on(
|
|
17373
|
+
b,
|
|
17361
17374
|
t,
|
|
17362
17375
|
u,
|
|
17363
17376
|
a,
|
|
17364
17377
|
void 0,
|
|
17365
17378
|
d
|
|
17366
17379
|
), u = [0, 0, 0, 0]), i[2] = n)) : h.type === "tableCellDivider" && (r ? r = !1 : (u[1] !== 0 && (i[0] = i[1], d = on(
|
|
17367
|
-
|
|
17380
|
+
b,
|
|
17368
17381
|
t,
|
|
17369
17382
|
u,
|
|
17370
17383
|
a,
|
|
17371
17384
|
void 0,
|
|
17372
17385
|
d
|
|
17373
17386
|
)), u = i, i = [u[1], n, 0, 0])) : h.type === "tableHead" ? (o = !0, l = n) : h.type === "tableRow" || h.type === "tableDelimiterRow" ? (l = n, u[1] !== 0 ? (i[0] = i[1], d = on(
|
|
17374
|
-
|
|
17387
|
+
b,
|
|
17375
17388
|
t,
|
|
17376
17389
|
u,
|
|
17377
17390
|
a,
|
|
17378
17391
|
n,
|
|
17379
17392
|
d
|
|
17380
|
-
)) : i[1] !== 0 && (d = on(
|
|
17393
|
+
)) : i[1] !== 0 && (d = on(b, t, i, a, n, d)), a = 0) : a && (h.type === "data" || h.type === "tableDelimiterMarker" || h.type === "tableDelimiterFiller") && (i[3] = n);
|
|
17381
17394
|
}
|
|
17382
|
-
for (l !== 0 && hi(
|
|
17395
|
+
for (l !== 0 && hi(b, t, l, c, f), b.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
17383
17396
|
const m = t.events[n];
|
|
17384
17397
|
m[0] === "enter" && m[1].type === "table" && (m[1]._align = i1(t.events, n));
|
|
17385
17398
|
}
|
|
@@ -17401,10 +17414,10 @@ function on(e, t, n, r, a, u) {
|
|
|
17401
17414
|
end: Object.assign({}, f)
|
|
17402
17415
|
};
|
|
17403
17416
|
if (e.add(n[2], 0, [["enter", d, t]]), r !== 2) {
|
|
17404
|
-
const
|
|
17405
|
-
if (
|
|
17406
|
-
const h = n[2] + 1,
|
|
17407
|
-
e.add(h,
|
|
17417
|
+
const b = t.events[n[2]], m = t.events[n[3]];
|
|
17418
|
+
if (b[1].end = Object.assign({}, m[1].end), b[1].type = "chunkText", b[1].contentType = "text", n[3] > n[2] + 1) {
|
|
17419
|
+
const h = n[2] + 1, E = n[3] - n[2] - 1;
|
|
17420
|
+
e.add(h, E, []);
|
|
17408
17421
|
}
|
|
17409
17422
|
}
|
|
17410
17423
|
e.add(n[3] + 1, 0, [["exit", d, t]]);
|
|
@@ -17491,21 +17504,21 @@ const g1 = ({
|
|
|
17491
17504
|
const a = window.getSelection(), u = document.createRange();
|
|
17492
17505
|
u.selectNodeContents(r.currentTarget), a == null || a.removeAllRanges(), a == null || a.addRange(u);
|
|
17493
17506
|
},
|
|
17494
|
-
className:
|
|
17507
|
+
className: bt(
|
|
17495
17508
|
"font-mono border p-1 py-0.5 rounded bg-border/50 dark:bg-border/70 whitespace-nowrap",
|
|
17496
17509
|
e
|
|
17497
17510
|
),
|
|
17498
17511
|
children: t
|
|
17499
17512
|
}
|
|
17500
17513
|
);
|
|
17501
|
-
var
|
|
17514
|
+
var b1 = Object.create, Dn = Object.defineProperty, E1 = Object.defineProperties, T1 = Object.getOwnPropertyDescriptor, y1 = Object.getOwnPropertyDescriptors, Cs = Object.getOwnPropertyNames, An = Object.getOwnPropertySymbols, A1 = Object.getPrototypeOf, jr = Object.prototype.hasOwnProperty, xs = Object.prototype.propertyIsEnumerable, pi = (e, t, n) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ze = (e, t) => {
|
|
17502
17515
|
for (var n in t || (t = {}))
|
|
17503
17516
|
jr.call(t, n) && pi(e, n, t[n]);
|
|
17504
17517
|
if (An)
|
|
17505
17518
|
for (var n of An(t))
|
|
17506
17519
|
xs.call(t, n) && pi(e, n, t[n]);
|
|
17507
17520
|
return e;
|
|
17508
|
-
}, Pn = (e, t) =>
|
|
17521
|
+
}, Pn = (e, t) => E1(e, y1(t)), ks = (e, t) => {
|
|
17509
17522
|
var n = {};
|
|
17510
17523
|
for (var r in e)
|
|
17511
17524
|
jr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -17523,7 +17536,7 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17523
17536
|
for (let a of Cs(t))
|
|
17524
17537
|
!jr.call(e, a) && a !== n && Dn(e, a, { get: () => t[a], enumerable: !(r = T1(t, a)) || r.enumerable });
|
|
17525
17538
|
return e;
|
|
17526
|
-
}, k1 = (e, t, n) => (n = e != null ?
|
|
17539
|
+
}, k1 = (e, t, n) => (n = e != null ? b1(A1(e)) : {}, x1(
|
|
17527
17540
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
17528
17541
|
// file that has been converted to a CommonJS file using a Babel-
|
|
17529
17542
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -17544,8 +17557,8 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17544
17557
|
* @memberof Prism
|
|
17545
17558
|
*/
|
|
17546
17559
|
util: {
|
|
17547
|
-
encode: function h(
|
|
17548
|
-
return
|
|
17560
|
+
encode: function h(E) {
|
|
17561
|
+
return E instanceof o ? new o(E.type, h(E.content), E.alias) : Array.isArray(E) ? E.map(h) : E.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
17549
17562
|
},
|
|
17550
17563
|
/**
|
|
17551
17564
|
* Returns the name of the type of the given value.
|
|
@@ -17585,28 +17598,28 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17585
17598
|
* @returns {T}
|
|
17586
17599
|
* @template T
|
|
17587
17600
|
*/
|
|
17588
|
-
clone: function h(
|
|
17601
|
+
clone: function h(E, y) {
|
|
17589
17602
|
y = y || {};
|
|
17590
17603
|
var _, x;
|
|
17591
|
-
switch (i.util.type(
|
|
17604
|
+
switch (i.util.type(E)) {
|
|
17592
17605
|
case "Object":
|
|
17593
|
-
if (x = i.util.objId(
|
|
17606
|
+
if (x = i.util.objId(E), y[x])
|
|
17594
17607
|
return y[x];
|
|
17595
17608
|
_ = /** @type {Record<string, any>} */
|
|
17596
17609
|
{}, y[x] = _;
|
|
17597
|
-
for (var I in
|
|
17598
|
-
|
|
17610
|
+
for (var I in E)
|
|
17611
|
+
E.hasOwnProperty(I) && (_[I] = h(E[I], y));
|
|
17599
17612
|
return (
|
|
17600
17613
|
/** @type {any} */
|
|
17601
17614
|
_
|
|
17602
17615
|
);
|
|
17603
17616
|
case "Array":
|
|
17604
|
-
return x = i.util.objId(
|
|
17617
|
+
return x = i.util.objId(E), y[x] ? y[x] : (_ = [], y[x] = _, E.forEach(function(M, B) {
|
|
17605
17618
|
_[B] = h(M, y);
|
|
17606
17619
|
}), /** @type {any} */
|
|
17607
17620
|
_);
|
|
17608
17621
|
default:
|
|
17609
|
-
return
|
|
17622
|
+
return E;
|
|
17610
17623
|
}
|
|
17611
17624
|
},
|
|
17612
17625
|
/**
|
|
@@ -17619,9 +17632,9 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17619
17632
|
*/
|
|
17620
17633
|
getLanguage: function(h) {
|
|
17621
17634
|
for (; h; ) {
|
|
17622
|
-
var
|
|
17623
|
-
if (
|
|
17624
|
-
return
|
|
17635
|
+
var E = r.exec(h.className);
|
|
17636
|
+
if (E)
|
|
17637
|
+
return E[1].toLowerCase();
|
|
17625
17638
|
h = h.parentElement;
|
|
17626
17639
|
}
|
|
17627
17640
|
return "none";
|
|
@@ -17633,8 +17646,8 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17633
17646
|
* @param {string} language
|
|
17634
17647
|
* @returns {void}
|
|
17635
17648
|
*/
|
|
17636
|
-
setLanguage: function(h,
|
|
17637
|
-
h.className = h.className.replace(RegExp(r, "gi"), ""), h.classList.add("language-" +
|
|
17649
|
+
setLanguage: function(h, E) {
|
|
17650
|
+
h.className = h.className.replace(RegExp(r, "gi"), ""), h.classList.add("language-" + E);
|
|
17638
17651
|
},
|
|
17639
17652
|
/**
|
|
17640
17653
|
* Returns whether a given class is active for `element`.
|
|
@@ -17655,10 +17668,10 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17655
17668
|
* @param {boolean} [defaultActivation=false]
|
|
17656
17669
|
* @returns {boolean}
|
|
17657
17670
|
*/
|
|
17658
|
-
isActive: function(h,
|
|
17659
|
-
for (var _ = "no-" +
|
|
17671
|
+
isActive: function(h, E, y) {
|
|
17672
|
+
for (var _ = "no-" + E; h; ) {
|
|
17660
17673
|
var x = h.classList;
|
|
17661
|
-
if (x.contains(
|
|
17674
|
+
if (x.contains(E))
|
|
17662
17675
|
return !0;
|
|
17663
17676
|
if (x.contains(_))
|
|
17664
17677
|
return !1;
|
|
@@ -17710,10 +17723,10 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17710
17723
|
* 'color': /\b(?:red|green|blue)\b/
|
|
17711
17724
|
* });
|
|
17712
17725
|
*/
|
|
17713
|
-
extend: function(h,
|
|
17726
|
+
extend: function(h, E) {
|
|
17714
17727
|
var y = i.util.clone(i.languages[h]);
|
|
17715
|
-
for (var _ in
|
|
17716
|
-
y[_] =
|
|
17728
|
+
for (var _ in E)
|
|
17729
|
+
y[_] = E[_];
|
|
17717
17730
|
return y;
|
|
17718
17731
|
},
|
|
17719
17732
|
/**
|
|
@@ -17791,13 +17804,13 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17791
17804
|
* @returns {Grammar} The new grammar object.
|
|
17792
17805
|
* @public
|
|
17793
17806
|
*/
|
|
17794
|
-
insertBefore: function(h,
|
|
17807
|
+
insertBefore: function(h, E, y, _) {
|
|
17795
17808
|
_ = _ || /** @type {any} */
|
|
17796
17809
|
i.languages;
|
|
17797
17810
|
var x = _[h], I = {};
|
|
17798
17811
|
for (var M in x)
|
|
17799
17812
|
if (x.hasOwnProperty(M)) {
|
|
17800
|
-
if (M ==
|
|
17813
|
+
if (M == E)
|
|
17801
17814
|
for (var B in y)
|
|
17802
17815
|
y.hasOwnProperty(B) && (I[B] = y[B]);
|
|
17803
17816
|
y.hasOwnProperty(M) || (I[M] = x[M]);
|
|
@@ -17808,13 +17821,13 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17808
17821
|
}), I;
|
|
17809
17822
|
},
|
|
17810
17823
|
// Traverse a language definition with Depth First Search
|
|
17811
|
-
DFS: function h(
|
|
17824
|
+
DFS: function h(E, y, _, x) {
|
|
17812
17825
|
x = x || {};
|
|
17813
17826
|
var I = i.util.objId;
|
|
17814
|
-
for (var M in
|
|
17815
|
-
if (
|
|
17816
|
-
y.call(
|
|
17817
|
-
var B =
|
|
17827
|
+
for (var M in E)
|
|
17828
|
+
if (E.hasOwnProperty(M)) {
|
|
17829
|
+
y.call(E, M, E[M], _ || M);
|
|
17830
|
+
var B = E[M], R = i.util.type(B);
|
|
17818
17831
|
R === "Object" && !x[I(B)] ? (x[I(B)] = !0, h(B, y, null, x)) : R === "Array" && !x[I(B)] && (x[I(B)] = !0, h(B, y, M, x));
|
|
17819
17832
|
}
|
|
17820
17833
|
}
|
|
@@ -17840,10 +17853,10 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17840
17853
|
* @example
|
|
17841
17854
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
17842
17855
|
*/
|
|
17843
|
-
highlight: function(h,
|
|
17856
|
+
highlight: function(h, E, y) {
|
|
17844
17857
|
var _ = {
|
|
17845
17858
|
code: h,
|
|
17846
|
-
grammar:
|
|
17859
|
+
grammar: E,
|
|
17847
17860
|
language: y
|
|
17848
17861
|
};
|
|
17849
17862
|
if (i.hooks.run("before-tokenize", _), !_.grammar)
|
|
@@ -17874,15 +17887,15 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17874
17887
|
* }
|
|
17875
17888
|
* });
|
|
17876
17889
|
*/
|
|
17877
|
-
tokenize: function(h,
|
|
17878
|
-
var y =
|
|
17890
|
+
tokenize: function(h, E) {
|
|
17891
|
+
var y = E.rest;
|
|
17879
17892
|
if (y) {
|
|
17880
17893
|
for (var _ in y)
|
|
17881
|
-
|
|
17882
|
-
delete
|
|
17894
|
+
E[_] = y[_];
|
|
17895
|
+
delete E.rest;
|
|
17883
17896
|
}
|
|
17884
17897
|
var x = new f();
|
|
17885
|
-
return d(x, x.head, h), c(h, x,
|
|
17898
|
+
return d(x, x.head, h), c(h, x, E, x.head, 0), m(x);
|
|
17886
17899
|
},
|
|
17887
17900
|
/**
|
|
17888
17901
|
* @namespace
|
|
@@ -17903,9 +17916,9 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17903
17916
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
17904
17917
|
* @public
|
|
17905
17918
|
*/
|
|
17906
|
-
add: function(h,
|
|
17919
|
+
add: function(h, E) {
|
|
17907
17920
|
var y = i.hooks.all;
|
|
17908
|
-
y[h] = y[h] || [], y[h].push(
|
|
17921
|
+
y[h] = y[h] || [], y[h].push(E);
|
|
17909
17922
|
},
|
|
17910
17923
|
/**
|
|
17911
17924
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -17916,43 +17929,43 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17916
17929
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
17917
17930
|
* @public
|
|
17918
17931
|
*/
|
|
17919
|
-
run: function(h,
|
|
17932
|
+
run: function(h, E) {
|
|
17920
17933
|
var y = i.hooks.all[h];
|
|
17921
17934
|
if (!(!y || !y.length))
|
|
17922
17935
|
for (var _ = 0, x; x = y[_++]; )
|
|
17923
|
-
x(
|
|
17936
|
+
x(E);
|
|
17924
17937
|
}
|
|
17925
17938
|
},
|
|
17926
17939
|
Token: o
|
|
17927
17940
|
};
|
|
17928
|
-
function o(h,
|
|
17929
|
-
this.type = h, this.content =
|
|
17941
|
+
function o(h, E, y, _) {
|
|
17942
|
+
this.type = h, this.content = E, this.alias = y, this.length = (_ || "").length | 0;
|
|
17930
17943
|
}
|
|
17931
|
-
o.stringify = function h(
|
|
17932
|
-
if (typeof
|
|
17933
|
-
return
|
|
17934
|
-
if (Array.isArray(
|
|
17944
|
+
o.stringify = function h(E, y) {
|
|
17945
|
+
if (typeof E == "string")
|
|
17946
|
+
return E;
|
|
17947
|
+
if (Array.isArray(E)) {
|
|
17935
17948
|
var _ = "";
|
|
17936
|
-
return
|
|
17949
|
+
return E.forEach(function(R) {
|
|
17937
17950
|
_ += h(R, y);
|
|
17938
17951
|
}), _;
|
|
17939
17952
|
}
|
|
17940
17953
|
var x = {
|
|
17941
|
-
type:
|
|
17942
|
-
content: h(
|
|
17954
|
+
type: E.type,
|
|
17955
|
+
content: h(E.content, y),
|
|
17943
17956
|
tag: "span",
|
|
17944
|
-
classes: ["token",
|
|
17957
|
+
classes: ["token", E.type],
|
|
17945
17958
|
attributes: {},
|
|
17946
17959
|
language: y
|
|
17947
|
-
}, I =
|
|
17960
|
+
}, I = E.alias;
|
|
17948
17961
|
I && (Array.isArray(I) ? Array.prototype.push.apply(x.classes, I) : x.classes.push(I)), i.hooks.run("wrap", x);
|
|
17949
17962
|
var M = "";
|
|
17950
17963
|
for (var B in x.attributes)
|
|
17951
17964
|
M += " " + B + '="' + (x.attributes[B] || "").replace(/"/g, """) + '"';
|
|
17952
17965
|
return "<" + x.tag + ' class="' + x.classes.join(" ") + '"' + M + ">" + x.content + "</" + x.tag + ">";
|
|
17953
17966
|
};
|
|
17954
|
-
function l(h,
|
|
17955
|
-
h.lastIndex =
|
|
17967
|
+
function l(h, E, y, _) {
|
|
17968
|
+
h.lastIndex = E;
|
|
17956
17969
|
var x = h.exec(y);
|
|
17957
17970
|
if (x && _ && x[1]) {
|
|
17958
17971
|
var I = x[1].length;
|
|
@@ -17960,7 +17973,7 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17960
17973
|
}
|
|
17961
17974
|
return x;
|
|
17962
17975
|
}
|
|
17963
|
-
function c(h,
|
|
17976
|
+
function c(h, E, y, _, x, I) {
|
|
17964
17977
|
for (var M in y)
|
|
17965
17978
|
if (!(!y.hasOwnProperty(M) || !y[M])) {
|
|
17966
17979
|
var B = y[M];
|
|
@@ -17973,9 +17986,9 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17973
17986
|
var F = U.pattern.toString().match(/[imsuy]*$/)[0];
|
|
17974
17987
|
U.pattern = RegExp(U.pattern.source, F + "g");
|
|
17975
17988
|
}
|
|
17976
|
-
for (var ee = U.pattern || U, G = _.next, j = x; G !==
|
|
17989
|
+
for (var ee = U.pattern || U, G = _.next, j = x; G !== E.tail && !(I && j >= I.reach); j += G.value.length, G = G.next) {
|
|
17977
17990
|
var te = G.value;
|
|
17978
|
-
if (
|
|
17991
|
+
if (E.length > h.length)
|
|
17979
17992
|
return;
|
|
17980
17993
|
if (!(te instanceof o)) {
|
|
17981
17994
|
var se = 1, re;
|
|
@@ -17987,7 +18000,7 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17987
18000
|
G = G.next, A += G.value.length;
|
|
17988
18001
|
if (A -= G.value.length, j = A, G.value instanceof o)
|
|
17989
18002
|
continue;
|
|
17990
|
-
for (var ae = G; ae !==
|
|
18003
|
+
for (var ae = G; ae !== E.tail && (A < me || typeof ae.value == "string"); ae = ae.next)
|
|
17991
18004
|
se++, A += ae.value.length;
|
|
17992
18005
|
se--, te = h.slice(j, A), re.index -= j;
|
|
17993
18006
|
} else if (re = l(ee, 0, te, Y), !re)
|
|
@@ -17995,14 +18008,14 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
17995
18008
|
var Ae = re.index, C = re[0], Te = te.slice(0, Ae), Me = te.slice(Ae + C.length), ce = j + te.length;
|
|
17996
18009
|
I && ce > I.reach && (I.reach = ce);
|
|
17997
18010
|
var Fe = G.prev;
|
|
17998
|
-
Te && (Fe = d(
|
|
18011
|
+
Te && (Fe = d(E, Fe, Te), j += Te.length), b(E, Fe, se);
|
|
17999
18012
|
var Be = new o(M, q ? i.tokenize(C, q) : C, H, C);
|
|
18000
|
-
if (G = d(
|
|
18013
|
+
if (G = d(E, Fe, Be), Me && d(E, G, Me), se > 1) {
|
|
18001
18014
|
var ve = {
|
|
18002
18015
|
cause: M + "," + R,
|
|
18003
18016
|
reach: ce
|
|
18004
18017
|
};
|
|
18005
|
-
c(h,
|
|
18018
|
+
c(h, E, y, G.prev, j, ve), I && ve.reach > I.reach && (I.reach = ve.reach);
|
|
18006
18019
|
}
|
|
18007
18020
|
}
|
|
18008
18021
|
}
|
|
@@ -18010,22 +18023,22 @@ var E1 = Object.create, Dn = Object.defineProperty, b1 = Object.defineProperties
|
|
|
18010
18023
|
}
|
|
18011
18024
|
}
|
|
18012
18025
|
function f() {
|
|
18013
|
-
var h = { value: null, prev: null, next: null },
|
|
18014
|
-
h.next =
|
|
18026
|
+
var h = { value: null, prev: null, next: null }, E = { value: null, prev: h, next: null };
|
|
18027
|
+
h.next = E, this.head = h, this.tail = E, this.length = 0;
|
|
18015
18028
|
}
|
|
18016
|
-
function d(h,
|
|
18017
|
-
var _ =
|
|
18018
|
-
return
|
|
18029
|
+
function d(h, E, y) {
|
|
18030
|
+
var _ = E.next, x = { value: y, prev: E, next: _ };
|
|
18031
|
+
return E.next = x, _.prev = x, h.length++, x;
|
|
18019
18032
|
}
|
|
18020
|
-
function
|
|
18021
|
-
for (var _ =
|
|
18033
|
+
function b(h, E, y) {
|
|
18034
|
+
for (var _ = E.next, x = 0; x < y && _ !== h.tail; x++)
|
|
18022
18035
|
_ = _.next;
|
|
18023
|
-
|
|
18036
|
+
E.next = _, _.prev = E, h.length -= x;
|
|
18024
18037
|
}
|
|
18025
18038
|
function m(h) {
|
|
18026
|
-
for (var
|
|
18027
|
-
|
|
18028
|
-
return
|
|
18039
|
+
for (var E = [], y = h.head.next; y !== h.tail; )
|
|
18040
|
+
E.push(y.value), y = y.next;
|
|
18041
|
+
return E;
|
|
18029
18042
|
}
|
|
18030
18043
|
return i;
|
|
18031
18044
|
}();
|
|
@@ -18106,27 +18119,27 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18106
18119
|
}), e.hooks.add("after-tokenize", function(c) {
|
|
18107
18120
|
c.language !== "markdown" && c.language !== "md" || function f(d) {
|
|
18108
18121
|
if (d && typeof d != "string")
|
|
18109
|
-
for (var
|
|
18110
|
-
var h,
|
|
18111
|
-
|
|
18122
|
+
for (var b = 0, m = d.length; b < m; b++) {
|
|
18123
|
+
var h, E = d[b];
|
|
18124
|
+
E.type !== "code" ? f(E.content) : (h = E.content[1], E = E.content[3], h && E && h.type === "code-language" && E.type === "code-block" && typeof h.content == "string" && (h = h.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), h = "language-" + (h = (/[a-z][\w-]*/i.exec(h) || [""])[0].toLowerCase()), E.alias ? typeof E.alias == "string" ? E.alias = [E.alias, h] : E.alias.push(h) : E.alias = [h]));
|
|
18112
18125
|
}
|
|
18113
18126
|
}(c.tokens);
|
|
18114
18127
|
}), e.hooks.add("wrap", function(c) {
|
|
18115
18128
|
if (c.type === "code-block") {
|
|
18116
|
-
for (var f = "", d = 0,
|
|
18129
|
+
for (var f = "", d = 0, b = c.classes.length; d < b; d++) {
|
|
18117
18130
|
var m = c.classes[d], m = /language-(.+)/.exec(m);
|
|
18118
18131
|
if (m) {
|
|
18119
18132
|
f = m[1];
|
|
18120
18133
|
break;
|
|
18121
18134
|
}
|
|
18122
18135
|
}
|
|
18123
|
-
var h,
|
|
18124
|
-
|
|
18136
|
+
var h, E = e.languages[f];
|
|
18137
|
+
E ? c.content = e.highlight(function(y) {
|
|
18125
18138
|
return y = y.replace(i, ""), y = y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(_, x) {
|
|
18126
18139
|
var I;
|
|
18127
18140
|
return (x = x.toLowerCase())[0] === "#" ? (I = x[1] === "x" ? parseInt(x.slice(2), 16) : Number(x.slice(1)), l(I)) : o[x] || _;
|
|
18128
18141
|
});
|
|
18129
|
-
}(c.content),
|
|
18142
|
+
}(c.content), E, f) : f && f !== "none" && e.plugins.autoloader && (h = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), c.attributes.id = h, e.plugins.autoloader.loadLanguages(f, function() {
|
|
18130
18143
|
var y = document.getElementById(h);
|
|
18131
18144
|
y && (y.innerHTML = e.highlight(y.textContent, e.languages[f], f));
|
|
18132
18145
|
}));
|
|
@@ -18143,7 +18156,7 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18143
18156
|
var a = [];
|
|
18144
18157
|
if (d(["definition-mutation", "punctuation"]) && f(1).content === "(") {
|
|
18145
18158
|
n += 2;
|
|
18146
|
-
var u =
|
|
18159
|
+
var u = b(/^\($/, /^\)$/);
|
|
18147
18160
|
if (u === -1)
|
|
18148
18161
|
continue;
|
|
18149
18162
|
for (; n < u; n++) {
|
|
@@ -18153,7 +18166,7 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18153
18166
|
n = u + 1;
|
|
18154
18167
|
}
|
|
18155
18168
|
if (d(["punctuation", "property-query"]) && f(0).content === "{" && (n++, m(f(0), "property-mutation"), 0 < a.length)) {
|
|
18156
|
-
var o =
|
|
18169
|
+
var o = b(/^\{$/, /^\}$/);
|
|
18157
18170
|
if (o !== -1)
|
|
18158
18171
|
for (var l = n; l < o; l++) {
|
|
18159
18172
|
var c = t[l];
|
|
@@ -18165,54 +18178,54 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18165
18178
|
function f(h) {
|
|
18166
18179
|
return t[n + h];
|
|
18167
18180
|
}
|
|
18168
|
-
function d(h,
|
|
18169
|
-
|
|
18181
|
+
function d(h, E) {
|
|
18182
|
+
E = E || 0;
|
|
18170
18183
|
for (var y = 0; y < h.length; y++) {
|
|
18171
|
-
var _ = f(y +
|
|
18184
|
+
var _ = f(y + E);
|
|
18172
18185
|
if (!_ || _.type !== h[y])
|
|
18173
18186
|
return;
|
|
18174
18187
|
}
|
|
18175
18188
|
return 1;
|
|
18176
18189
|
}
|
|
18177
|
-
function
|
|
18190
|
+
function b(h, E) {
|
|
18178
18191
|
for (var y = 1, _ = n; _ < t.length; _++) {
|
|
18179
18192
|
var x = t[_], I = x.content;
|
|
18180
18193
|
if (x.type === "punctuation" && typeof I == "string") {
|
|
18181
18194
|
if (h.test(I))
|
|
18182
18195
|
y++;
|
|
18183
|
-
else if (
|
|
18196
|
+
else if (E.test(I) && --y === 0)
|
|
18184
18197
|
return _;
|
|
18185
18198
|
}
|
|
18186
18199
|
}
|
|
18187
18200
|
return -1;
|
|
18188
18201
|
}
|
|
18189
|
-
function m(h,
|
|
18202
|
+
function m(h, E) {
|
|
18190
18203
|
var y = h.alias;
|
|
18191
|
-
y ? Array.isArray(y) || (h.alias = y = [y]) : h.alias = y = [], y.push(
|
|
18204
|
+
y ? Array.isArray(y) || (h.alias = y = [y]) : h.alias = y = [], y.push(E);
|
|
18192
18205
|
}
|
|
18193
18206
|
}), w.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
|
|
18194
18207
|
var t = e.languages.javascript["template-string"], n = t.pattern.source, r = t.inside.interpolation, a = r.inside["interpolation-punctuation"], u = r.pattern.source;
|
|
18195
|
-
function i(d,
|
|
18208
|
+
function i(d, b) {
|
|
18196
18209
|
if (e.languages[d])
|
|
18197
|
-
return { pattern: RegExp("((?:" +
|
|
18210
|
+
return { pattern: RegExp("((?:" + b + ")\\s*)" + n), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: d } } };
|
|
18198
18211
|
}
|
|
18199
|
-
function o(d,
|
|
18200
|
-
return d = { code: d, grammar:
|
|
18212
|
+
function o(d, b, m) {
|
|
18213
|
+
return d = { code: d, grammar: b, language: m }, e.hooks.run("before-tokenize", d), d.tokens = e.tokenize(d.code, d.grammar), e.hooks.run("after-tokenize", d), d.tokens;
|
|
18201
18214
|
}
|
|
18202
|
-
function l(d,
|
|
18203
|
-
var y = e.tokenize(d, { interpolation: { pattern: RegExp(u), lookbehind: !0 } }), h = 0,
|
|
18215
|
+
function l(d, b, m) {
|
|
18216
|
+
var y = e.tokenize(d, { interpolation: { pattern: RegExp(u), lookbehind: !0 } }), h = 0, E = {}, y = o(y.map(function(x) {
|
|
18204
18217
|
if (typeof x == "string")
|
|
18205
18218
|
return x;
|
|
18206
18219
|
for (var I, M, x = x.content; d.indexOf((M = h++, I = "___" + m.toUpperCase() + "_" + M + "___")) !== -1; )
|
|
18207
18220
|
;
|
|
18208
|
-
return
|
|
18209
|
-
}).join(""),
|
|
18221
|
+
return E[I] = x, I;
|
|
18222
|
+
}).join(""), b, m), _ = Object.keys(E);
|
|
18210
18223
|
return h = 0, function x(I) {
|
|
18211
18224
|
for (var M = 0; M < I.length; M++) {
|
|
18212
18225
|
if (h >= _.length)
|
|
18213
18226
|
return;
|
|
18214
18227
|
var B, R, U, q, Y, S, H, F = I[M];
|
|
18215
|
-
typeof F == "string" || typeof F.content == "string" ? (B = _[h], (H = (S = typeof F == "string" ? F : F.content).indexOf(B)) !== -1 && (++h, R = S.substring(0, H), Y =
|
|
18228
|
+
typeof F == "string" || typeof F.content == "string" ? (B = _[h], (H = (S = typeof F == "string" ? F : F.content).indexOf(B)) !== -1 && (++h, R = S.substring(0, H), Y = E[B], U = void 0, (q = {})["interpolation-punctuation"] = a, (q = e.tokenize(Y, q)).length === 3 && ((U = [1, 1]).push.apply(U, o(q[1], e.languages.javascript, "javascript")), q.splice.apply(q, U)), U = new e.Token("interpolation", q, r.alias, Y), q = S.substring(H + B.length), Y = [], R && Y.push(R), Y.push(U), q && (x(S = [q]), Y.push.apply(Y, S)), typeof F == "string" ? (I.splice.apply(I, [M, 1].concat(Y)), M += Y.length - 1) : F.content = Y)) : (H = F.content, Array.isArray(H) ? x(H) : x([H]));
|
|
18216
18229
|
}
|
|
18217
18230
|
}(y), new e.Token(m, y, "language-" + m, d);
|
|
18218
18231
|
}
|
|
@@ -18222,10 +18235,10 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18222
18235
|
return typeof d == "string" ? d : Array.isArray(d) ? d.map(f).join("") : f(d.content);
|
|
18223
18236
|
}
|
|
18224
18237
|
e.hooks.add("after-tokenize", function(d) {
|
|
18225
|
-
d.language in c && function
|
|
18226
|
-
for (var h = 0,
|
|
18238
|
+
d.language in c && function b(m) {
|
|
18239
|
+
for (var h = 0, E = m.length; h < E; h++) {
|
|
18227
18240
|
var y, _, x, I = m[h];
|
|
18228
|
-
typeof I != "string" && (y = I.content, Array.isArray(y) ? I.type === "template-string" ? (I = y[1], y.length === 3 && typeof I != "string" && I.type === "embedded-code" && (_ = f(I), I = I.alias, I = Array.isArray(I) ? I[0] : I, x = e.languages[I]) && (y[1] = l(_, x, I))) :
|
|
18241
|
+
typeof I != "string" && (y = I.content, Array.isArray(y) ? I.type === "template-string" ? (I = y[1], y.length === 3 && typeof I != "string" && I.type === "embedded-code" && (_ = f(I), I = I.alias, I = Array.isArray(I) ? I[0] : I, x = e.languages[I]) && (y[1] = l(_, x, I))) : b(y) : typeof y != "string" && b([y]));
|
|
18229
18242
|
}
|
|
18230
18243
|
}(d.tokens);
|
|
18231
18244
|
});
|
|
@@ -18265,8 +18278,8 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18265
18278
|
a = u(a).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: u(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: u(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
|
|
18266
18279
|
function i(l) {
|
|
18267
18280
|
for (var c = [], f = 0; f < l.length; f++) {
|
|
18268
|
-
var d = l[f],
|
|
18269
|
-
typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? 0 < c.length && c[c.length - 1].tagName === o(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content !== "/>" && c.push({ tagName: o(d.content[0].content[1]), openedBraces: 0 }) : 0 < c.length && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : 0 < c.length && 0 < c[c.length - 1].openedBraces && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- :
|
|
18281
|
+
var d = l[f], b = !1;
|
|
18282
|
+
typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? 0 < c.length && c[c.length - 1].tagName === o(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content !== "/>" && c.push({ tagName: o(d.content[0].content[1]), openedBraces: 0 }) : 0 < c.length && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : 0 < c.length && 0 < c[c.length - 1].openedBraces && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- : b = !0), (b || typeof d == "string") && 0 < c.length && c[c.length - 1].openedBraces === 0 && (b = o(d), f < l.length - 1 && (typeof l[f + 1] == "string" || l[f + 1].type === "plain-text") && (b += o(l[f + 1]), l.splice(f + 1, 1)), 0 < f && (typeof l[f - 1] == "string" || l[f - 1].type === "plain-text") && (b = o(l[f - 1]) + b, l.splice(f - 1, 1), f--), l[f] = new e.Token("plain-text", b, null, b)), d.content && typeof d.content != "string" && i(d.content);
|
|
18270
18283
|
}
|
|
18271
18284
|
}
|
|
18272
18285
|
var o = function(l) {
|
|
@@ -18301,21 +18314,23 @@ w.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
18301
18314
|
})), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
|
|
18302
18315
|
return n;
|
|
18303
18316
|
}) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
|
|
18304
|
-
}(w), w.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, w.languages.python["string-interpolation"].inside.interpolation.inside.rest = w.languages.python, w.languages.py = w.languages.python;
|
|
18305
|
-
var
|
|
18306
|
-
C1(
|
|
18317
|
+
}(w), w.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, w.languages.python["string-interpolation"].inside.interpolation.inside.rest = w.languages.python, w.languages.py = w.languages.python, w.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, w.languages.webmanifest = w.languages.json;
|
|
18318
|
+
var Er = {};
|
|
18319
|
+
C1(Er, {
|
|
18307
18320
|
dracula: () => N1,
|
|
18308
18321
|
duotoneDark: () => L1,
|
|
18309
18322
|
duotoneLight: () => w1,
|
|
18310
18323
|
github: () => P1,
|
|
18311
|
-
|
|
18312
|
-
|
|
18324
|
+
gruvboxMaterialDark: () => lb,
|
|
18325
|
+
gruvboxMaterialLight: () => db,
|
|
18326
|
+
jettwaveDark: () => tb,
|
|
18327
|
+
jettwaveLight: () => rb,
|
|
18313
18328
|
nightOwl: () => F1,
|
|
18314
18329
|
nightOwlLight: () => v1,
|
|
18315
18330
|
oceanicNext: () => U1,
|
|
18316
18331
|
okaidia: () => Y1,
|
|
18317
|
-
oneDark: () =>
|
|
18318
|
-
oneLight: () =>
|
|
18332
|
+
oneDark: () => ib,
|
|
18333
|
+
oneLight: () => sb,
|
|
18319
18334
|
palenight: () => G1,
|
|
18320
18335
|
shadesOfPurple: () => $1,
|
|
18321
18336
|
synthwave84: () => V1,
|
|
@@ -19604,7 +19619,7 @@ var S1 = {
|
|
|
19604
19619
|
}
|
|
19605
19620
|
}
|
|
19606
19621
|
]
|
|
19607
|
-
}, J1 = Z1,
|
|
19622
|
+
}, J1 = Z1, eb = {
|
|
19608
19623
|
plain: {
|
|
19609
19624
|
color: "#f8fafc",
|
|
19610
19625
|
backgroundColor: "#011627"
|
|
@@ -19703,7 +19718,7 @@ var S1 = {
|
|
|
19703
19718
|
}
|
|
19704
19719
|
}
|
|
19705
19720
|
]
|
|
19706
|
-
},
|
|
19721
|
+
}, tb = eb, nb = {
|
|
19707
19722
|
plain: {
|
|
19708
19723
|
color: "#0f172a",
|
|
19709
19724
|
backgroundColor: "#f1f5f9"
|
|
@@ -19802,7 +19817,7 @@ var S1 = {
|
|
|
19802
19817
|
}
|
|
19803
19818
|
}
|
|
19804
19819
|
]
|
|
19805
|
-
},
|
|
19820
|
+
}, rb = nb, ab = {
|
|
19806
19821
|
plain: {
|
|
19807
19822
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
19808
19823
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -19900,7 +19915,7 @@ var S1 = {
|
|
|
19900
19915
|
}
|
|
19901
19916
|
}
|
|
19902
19917
|
]
|
|
19903
|
-
},
|
|
19918
|
+
}, ib = ab, ub = {
|
|
19904
19919
|
plain: {
|
|
19905
19920
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
19906
19921
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -20001,7 +20016,152 @@ var S1 = {
|
|
|
20001
20016
|
}
|
|
20002
20017
|
}
|
|
20003
20018
|
]
|
|
20004
|
-
},
|
|
20019
|
+
}, sb = ub, ob = {
|
|
20020
|
+
plain: {
|
|
20021
|
+
color: "#ebdbb2",
|
|
20022
|
+
backgroundColor: "#292828"
|
|
20023
|
+
},
|
|
20024
|
+
styles: [
|
|
20025
|
+
{
|
|
20026
|
+
types: [
|
|
20027
|
+
"imports",
|
|
20028
|
+
"class-name",
|
|
20029
|
+
"maybe-class-name",
|
|
20030
|
+
"constant",
|
|
20031
|
+
"doctype",
|
|
20032
|
+
"builtin",
|
|
20033
|
+
"function"
|
|
20034
|
+
],
|
|
20035
|
+
style: {
|
|
20036
|
+
color: "#d8a657"
|
|
20037
|
+
}
|
|
20038
|
+
},
|
|
20039
|
+
{
|
|
20040
|
+
types: ["property-access"],
|
|
20041
|
+
style: {
|
|
20042
|
+
color: "#7daea3"
|
|
20043
|
+
}
|
|
20044
|
+
},
|
|
20045
|
+
{
|
|
20046
|
+
types: ["tag"],
|
|
20047
|
+
style: {
|
|
20048
|
+
color: "#e78a4e"
|
|
20049
|
+
}
|
|
20050
|
+
},
|
|
20051
|
+
{
|
|
20052
|
+
types: ["attr-name", "char", "url", "regex"],
|
|
20053
|
+
style: {
|
|
20054
|
+
color: "#a9b665"
|
|
20055
|
+
}
|
|
20056
|
+
},
|
|
20057
|
+
{
|
|
20058
|
+
types: ["attr-value", "string"],
|
|
20059
|
+
style: {
|
|
20060
|
+
color: "#89b482"
|
|
20061
|
+
}
|
|
20062
|
+
},
|
|
20063
|
+
{
|
|
20064
|
+
types: ["comment", "prolog", "cdata", "operator", "inserted"],
|
|
20065
|
+
style: {
|
|
20066
|
+
color: "#a89984"
|
|
20067
|
+
}
|
|
20068
|
+
},
|
|
20069
|
+
{
|
|
20070
|
+
types: [
|
|
20071
|
+
"delimiter",
|
|
20072
|
+
"boolean",
|
|
20073
|
+
"keyword",
|
|
20074
|
+
"selector",
|
|
20075
|
+
"important",
|
|
20076
|
+
"atrule",
|
|
20077
|
+
"property",
|
|
20078
|
+
"variable",
|
|
20079
|
+
"deleted"
|
|
20080
|
+
],
|
|
20081
|
+
style: {
|
|
20082
|
+
color: "#ea6962"
|
|
20083
|
+
}
|
|
20084
|
+
},
|
|
20085
|
+
{
|
|
20086
|
+
types: ["entity", "number", "symbol"],
|
|
20087
|
+
style: {
|
|
20088
|
+
color: "#d3869b"
|
|
20089
|
+
}
|
|
20090
|
+
}
|
|
20091
|
+
]
|
|
20092
|
+
}, lb = ob, cb = {
|
|
20093
|
+
plain: {
|
|
20094
|
+
color: "#654735",
|
|
20095
|
+
backgroundColor: "#f9f5d7"
|
|
20096
|
+
},
|
|
20097
|
+
styles: [
|
|
20098
|
+
{
|
|
20099
|
+
types: [
|
|
20100
|
+
"delimiter",
|
|
20101
|
+
"boolean",
|
|
20102
|
+
"keyword",
|
|
20103
|
+
"selector",
|
|
20104
|
+
"important",
|
|
20105
|
+
"atrule",
|
|
20106
|
+
"property",
|
|
20107
|
+
"variable",
|
|
20108
|
+
"deleted"
|
|
20109
|
+
],
|
|
20110
|
+
style: {
|
|
20111
|
+
color: "#af2528"
|
|
20112
|
+
}
|
|
20113
|
+
},
|
|
20114
|
+
{
|
|
20115
|
+
types: [
|
|
20116
|
+
"imports",
|
|
20117
|
+
"class-name",
|
|
20118
|
+
"maybe-class-name",
|
|
20119
|
+
"constant",
|
|
20120
|
+
"doctype",
|
|
20121
|
+
"builtin"
|
|
20122
|
+
],
|
|
20123
|
+
style: {
|
|
20124
|
+
color: "#b4730e"
|
|
20125
|
+
}
|
|
20126
|
+
},
|
|
20127
|
+
{
|
|
20128
|
+
types: ["string", "attr-value"],
|
|
20129
|
+
style: {
|
|
20130
|
+
color: "#477a5b"
|
|
20131
|
+
}
|
|
20132
|
+
},
|
|
20133
|
+
{
|
|
20134
|
+
types: ["property-access"],
|
|
20135
|
+
style: {
|
|
20136
|
+
color: "#266b79"
|
|
20137
|
+
}
|
|
20138
|
+
},
|
|
20139
|
+
{
|
|
20140
|
+
types: ["function", "attr-name", "char", "url"],
|
|
20141
|
+
style: {
|
|
20142
|
+
color: "#72761e"
|
|
20143
|
+
}
|
|
20144
|
+
},
|
|
20145
|
+
{
|
|
20146
|
+
types: ["tag"],
|
|
20147
|
+
style: {
|
|
20148
|
+
color: "#b94c07"
|
|
20149
|
+
}
|
|
20150
|
+
},
|
|
20151
|
+
{
|
|
20152
|
+
types: ["comment", "prolog", "cdata", "operator", "inserted"],
|
|
20153
|
+
style: {
|
|
20154
|
+
color: "#a89984"
|
|
20155
|
+
}
|
|
20156
|
+
},
|
|
20157
|
+
{
|
|
20158
|
+
types: ["entity", "number", "symbol"],
|
|
20159
|
+
style: {
|
|
20160
|
+
color: "#924f79"
|
|
20161
|
+
}
|
|
20162
|
+
}
|
|
20163
|
+
]
|
|
20164
|
+
}, db = cb, fb = (e, t) => {
|
|
20005
20165
|
const { plain: n } = e, r = e.styles.reduce((a, u) => {
|
|
20006
20166
|
const { languages: i, style: o } = u;
|
|
20007
20167
|
return i && !i.includes(t) || u.types.forEach((l) => {
|
|
@@ -20010,14 +20170,14 @@ var S1 = {
|
|
|
20010
20170
|
}), a;
|
|
20011
20171
|
}, {});
|
|
20012
20172
|
return r.root = n, r.plain = Pn(ze({}, n), { backgroundColor: void 0 }), r;
|
|
20013
|
-
}, mi =
|
|
20173
|
+
}, mi = fb, hb = (e, t) => {
|
|
20014
20174
|
const [n, r] = Tr(
|
|
20015
20175
|
mi(t, e)
|
|
20016
20176
|
), a = At(), u = At();
|
|
20017
20177
|
return hn(() => {
|
|
20018
20178
|
(t !== a.current || e !== u.current) && (a.current = t, u.current = e, r(mi(t, e)));
|
|
20019
20179
|
}, [e, t]), n;
|
|
20020
|
-
},
|
|
20180
|
+
}, pb = (e) => pn(
|
|
20021
20181
|
(t) => {
|
|
20022
20182
|
var n = t, { className: r, style: a, line: u } = n, i = ks(n, ["className", "style", "line"]);
|
|
20023
20183
|
const o = Pn(ze({}, i), {
|
|
@@ -20026,7 +20186,7 @@ var S1 = {
|
|
|
20026
20186
|
return typeof e == "object" && "plain" in e && (o.style = e.plain), typeof a == "object" && (o.style = ze(ze({}, o.style || {}), a)), o;
|
|
20027
20187
|
},
|
|
20028
20188
|
[e]
|
|
20029
|
-
),
|
|
20189
|
+
), mb = (e) => {
|
|
20030
20190
|
const t = pn(
|
|
20031
20191
|
({ types: n, empty: r }) => {
|
|
20032
20192
|
if (e != null) {
|
|
@@ -20056,7 +20216,7 @@ var S1 = {
|
|
|
20056
20216
|
},
|
|
20057
20217
|
[t]
|
|
20058
20218
|
);
|
|
20059
|
-
},
|
|
20219
|
+
}, gb = /\r\n|\r|\n/, gi = (e) => {
|
|
20060
20220
|
e.length === 0 ? e.push({
|
|
20061
20221
|
types: ["plain"],
|
|
20062
20222
|
content: `
|
|
@@ -20064,56 +20224,56 @@ var S1 = {
|
|
|
20064
20224
|
empty: !0
|
|
20065
20225
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
20066
20226
|
`, e[0].empty = !0);
|
|
20067
|
-
},
|
|
20227
|
+
}, bi = (e, t) => {
|
|
20068
20228
|
const n = e.length;
|
|
20069
20229
|
return n > 0 && e[n - 1] === t ? e : e.concat(t);
|
|
20070
|
-
},
|
|
20230
|
+
}, bb = (e) => {
|
|
20071
20231
|
const t = [[]], n = [e], r = [0], a = [e.length];
|
|
20072
20232
|
let u = 0, i = 0, o = [];
|
|
20073
20233
|
const l = [o];
|
|
20074
20234
|
for (; i > -1; ) {
|
|
20075
20235
|
for (; (u = r[i]++) < a[i]; ) {
|
|
20076
20236
|
let c, f = t[i];
|
|
20077
|
-
const
|
|
20078
|
-
if (typeof
|
|
20237
|
+
const b = n[i][u];
|
|
20238
|
+
if (typeof b == "string" ? (f = i > 0 ? f : ["plain"], c = b) : (f = bi(f, b.type), b.alias && (f = bi(f, b.alias)), c = b.content), typeof c != "string") {
|
|
20079
20239
|
i++, t.push(f), n.push(c), r.push(0), a.push(c.length);
|
|
20080
20240
|
continue;
|
|
20081
20241
|
}
|
|
20082
|
-
const m = c.split(
|
|
20242
|
+
const m = c.split(gb), h = m.length;
|
|
20083
20243
|
o.push({
|
|
20084
20244
|
types: f,
|
|
20085
20245
|
content: m[0]
|
|
20086
20246
|
});
|
|
20087
|
-
for (let
|
|
20247
|
+
for (let E = 1; E < h; E++)
|
|
20088
20248
|
gi(o), l.push(o = []), o.push({
|
|
20089
20249
|
types: f,
|
|
20090
|
-
content: m[
|
|
20250
|
+
content: m[E]
|
|
20091
20251
|
});
|
|
20092
20252
|
}
|
|
20093
20253
|
i--, t.pop(), n.pop(), r.pop(), a.pop();
|
|
20094
20254
|
}
|
|
20095
20255
|
return gi(o), l;
|
|
20096
|
-
},
|
|
20256
|
+
}, Ei = bb, Eb = ({ prism: e, code: t, grammar: n, language: r }) => {
|
|
20097
20257
|
const a = At(e);
|
|
20098
20258
|
return tr(() => {
|
|
20099
20259
|
if (n == null)
|
|
20100
|
-
return
|
|
20260
|
+
return Ei([t]);
|
|
20101
20261
|
const u = {
|
|
20102
20262
|
code: t,
|
|
20103
20263
|
grammar: n,
|
|
20104
20264
|
language: r,
|
|
20105
20265
|
tokens: []
|
|
20106
20266
|
};
|
|
20107
|
-
return a.current.hooks.run("before-tokenize", u), u.tokens = a.current.tokenize(t, n), a.current.hooks.run("after-tokenize", u),
|
|
20267
|
+
return a.current.hooks.run("before-tokenize", u), u.tokens = a.current.tokenize(t, n), a.current.hooks.run("after-tokenize", u), Ei(u.tokens);
|
|
20108
20268
|
}, [t, n, r]);
|
|
20109
|
-
},
|
|
20269
|
+
}, Tb = ({
|
|
20110
20270
|
children: e,
|
|
20111
20271
|
language: t,
|
|
20112
20272
|
code: n,
|
|
20113
20273
|
theme: r,
|
|
20114
20274
|
prism: a
|
|
20115
20275
|
}) => {
|
|
20116
|
-
const u = t.toLowerCase(), i =
|
|
20276
|
+
const u = t.toLowerCase(), i = hb(u, r), o = pb(i), l = mb(i), c = a.languages[u], f = Eb({ prism: a, language: u, code: n, grammar: c });
|
|
20117
20277
|
return e({
|
|
20118
20278
|
tokens: f,
|
|
20119
20279
|
className: `prism-code language-${u}`,
|
|
@@ -20121,7 +20281,7 @@ var S1 = {
|
|
|
20121
20281
|
getLineProps: o,
|
|
20122
20282
|
getTokenProps: l
|
|
20123
20283
|
});
|
|
20124
|
-
},
|
|
20284
|
+
}, yb = (e) => Fs(Tb, Pn(ze({}, e), {
|
|
20125
20285
|
prism: e.prism || w,
|
|
20126
20286
|
theme: e.theme || Is,
|
|
20127
20287
|
code: e.code,
|
|
@@ -20139,11 +20299,11 @@ prismjs/prism.js:
|
|
|
20139
20299
|
* @public
|
|
20140
20300
|
*)
|
|
20141
20301
|
*/
|
|
20142
|
-
const
|
|
20302
|
+
const Ab = Ti([
|
|
20143
20303
|
!1,
|
|
20144
20304
|
() => {
|
|
20145
20305
|
}
|
|
20146
|
-
]),
|
|
20306
|
+
]), _b = () => yi(Ab);
|
|
20147
20307
|
globalThis.Prism = w;
|
|
20148
20308
|
import("./prism-bash.min-DadFsM4Z.js");
|
|
20149
20309
|
import("./prism-ruby.min-C7LwcKyz.js");
|
|
@@ -20157,23 +20317,23 @@ import("./prism-objectivec.min-BXSWqpJJ.js");
|
|
|
20157
20317
|
import("./prism-markdown.min-F3U-vPBi.js");
|
|
20158
20318
|
import("./prism-javascript.min-CEqHqgbm.js");
|
|
20159
20319
|
import("./prism-typescript.min-oSVeWCAd.js");
|
|
20160
|
-
const
|
|
20320
|
+
const Cb = ({
|
|
20161
20321
|
copyable: e = !0,
|
|
20162
20322
|
language: t = "plain",
|
|
20163
20323
|
...n
|
|
20164
20324
|
}) => {
|
|
20165
|
-
const [r] =
|
|
20325
|
+
const [r] = _b(), [a, u] = Tr(!1);
|
|
20166
20326
|
return n.code ? /* @__PURE__ */ Q.jsx(
|
|
20167
|
-
|
|
20327
|
+
yb,
|
|
20168
20328
|
{
|
|
20169
|
-
theme: r ?
|
|
20329
|
+
theme: r ? Er.vsDark : Er.github,
|
|
20170
20330
|
language: t,
|
|
20171
20331
|
...n,
|
|
20172
20332
|
children: ({ className: i, style: o, tokens: l, getLineProps: c, getTokenProps: f }) => /* @__PURE__ */ Q.jsxs("div", { className: "relative group", children: [
|
|
20173
20333
|
/* @__PURE__ */ Q.jsx(
|
|
20174
20334
|
"pre",
|
|
20175
20335
|
{
|
|
20176
|
-
className:
|
|
20336
|
+
className: bt(
|
|
20177
20337
|
"relative scrollbar overflow-x-auto",
|
|
20178
20338
|
i,
|
|
20179
20339
|
n.className,
|
|
@@ -20181,12 +20341,12 @@ const TE = ({
|
|
|
20181
20341
|
n.wrapLines && "whitespace-pre-wrap break-words"
|
|
20182
20342
|
),
|
|
20183
20343
|
style: o,
|
|
20184
|
-
children: l.map((d,
|
|
20344
|
+
children: l.map((d, b) => (
|
|
20185
20345
|
// eslint-disable-next-line react/no-array-index-key
|
|
20186
20346
|
/* @__PURE__ */ Q.jsx("div", { ...c({ line: d }), children: d.map((m, h) => (
|
|
20187
20347
|
// eslint-disable-next-line react/no-array-index-key
|
|
20188
20348
|
/* @__PURE__ */ Q.jsx("span", { ...f({ token: m }) }, h)
|
|
20189
|
-
)) },
|
|
20349
|
+
)) }, b)
|
|
20190
20350
|
))
|
|
20191
20351
|
}
|
|
20192
20352
|
),
|
|
@@ -20201,7 +20361,7 @@ const TE = ({
|
|
|
20201
20361
|
disabled: a,
|
|
20202
20362
|
onClick: () => {
|
|
20203
20363
|
u(!0), navigator.clipboard.writeText(
|
|
20204
|
-
l.map((d) => d.map(({ content:
|
|
20364
|
+
l.map((d) => d.map(({ content: b }) => b).join("")).join(`
|
|
20205
20365
|
`)
|
|
20206
20366
|
), setTimeout(() => u(!1), 2e3);
|
|
20207
20367
|
},
|
|
@@ -20211,7 +20371,7 @@ const TE = ({
|
|
|
20211
20371
|
] })
|
|
20212
20372
|
}
|
|
20213
20373
|
) : null;
|
|
20214
|
-
},
|
|
20374
|
+
}, xb = {
|
|
20215
20375
|
// @ts-expect-error Node is not in types but still gets passed
|
|
20216
20376
|
img: ({ node: e, ...t }) => /\.(mp4|webm|mov|avi)$/.test(t.src ?? "") ? /* @__PURE__ */ Q.jsx("video", { src: t.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ Q.jsx("img", { ...t, className: "rounded-md" }),
|
|
20217
20377
|
h1: ({ children: e, id: t }) => /* @__PURE__ */ Q.jsx(ht, { level: 1, id: t, children: e }),
|
|
@@ -20236,7 +20396,7 @@ const TE = ({
|
|
|
20236
20396
|
return /* @__PURE__ */ Q.jsx(g1, { className: e, children: t });
|
|
20237
20397
|
const a = e == null ? void 0 : e.match(/language?-(\w+)/);
|
|
20238
20398
|
return /* @__PURE__ */ Q.jsx(
|
|
20239
|
-
|
|
20399
|
+
Cb,
|
|
20240
20400
|
{
|
|
20241
20401
|
language: a == null ? void 0 : a[1],
|
|
20242
20402
|
className: "rounded-xl p-4 border dark:!bg-foreground/10 dark:border-transparent",
|
|
@@ -20245,19 +20405,19 @@ const TE = ({
|
|
|
20245
20405
|
}
|
|
20246
20406
|
);
|
|
20247
20407
|
}
|
|
20248
|
-
},
|
|
20408
|
+
}, kb = () => (e) => {
|
|
20249
20409
|
Zt(e, "element", (t, n, r) => {
|
|
20250
20410
|
t.tagName === "code" && (t.properties.inline = String((r == null ? void 0 : r.tagName) !== "pre"));
|
|
20251
20411
|
});
|
|
20252
|
-
},
|
|
20412
|
+
}, Ib = [m1], Sb = [kb, um], Pb = "prose dark:prose-invert prose-neutral", Mb = ({
|
|
20253
20413
|
content: e,
|
|
20254
20414
|
className: t
|
|
20255
20415
|
}) => /* @__PURE__ */ Q.jsx(
|
|
20256
20416
|
$0,
|
|
20257
20417
|
{
|
|
20258
|
-
remarkPlugins:
|
|
20259
|
-
rehypePlugins:
|
|
20260
|
-
components:
|
|
20418
|
+
remarkPlugins: Ib,
|
|
20419
|
+
rehypePlugins: Sb,
|
|
20420
|
+
components: xb,
|
|
20261
20421
|
className: t,
|
|
20262
20422
|
children: e
|
|
20263
20423
|
}
|
|
@@ -20266,16 +20426,16 @@ export {
|
|
|
20266
20426
|
at as C,
|
|
20267
20427
|
ht as H,
|
|
20268
20428
|
g1 as I,
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20429
|
+
Mb as M,
|
|
20430
|
+
Pb as P,
|
|
20431
|
+
Cb as S,
|
|
20432
|
+
Ab as T,
|
|
20433
|
+
Db as V,
|
|
20434
|
+
bt as a,
|
|
20435
|
+
_b as b,
|
|
20276
20436
|
Zr as c,
|
|
20277
|
-
|
|
20437
|
+
xb as d,
|
|
20278
20438
|
qs as e,
|
|
20279
20439
|
Io as u
|
|
20280
20440
|
};
|
|
20281
|
-
//# sourceMappingURL=Markdown-
|
|
20441
|
+
//# sourceMappingURL=Markdown-CWI6lU11.js.map
|